AlgART Home

net.algart.math.functions
Class PowerFunc.Updatable

java.lang.Object
  extended by net.algart.math.functions.PowerFunc
      extended by net.algart.math.functions.PowerFunc.Updatable
All Implemented Interfaces:
Func, Func.Updatable
Enclosing class:
PowerFunc

public abstract static class PowerFunc.Updatable
extends PowerFunc
implements Func.Updatable

Updatable extension of the power function with one argument.


Nested Class Summary
Modifier and Type Class and Description
 
Nested classes/interfaces inherited from class net.algart.math.functions.PowerFunc
PowerFunc.Updatable
 
Nested classes/interfaces inherited from interface net.algart.math.functions.Func
Func.Updatable
 
Field Summary
Modifier and Type Field and Description
 
Fields inherited from interface net.algart.math.functions.Func
ABS, ABS_DIFF, HALF_X_MINUS_Y, HALF_X_PLUS_Y, HALF_Y_MINUS_X, IDENTITY, MAX, MIN, POSITIVE_DIFF, REVERSE, SELECT, SELECT_FROM_8_DIRECTIONS_2D, SELECT_IF_GREATER, SELECT_IF_GREATER_OR_EQUAL, SHIFTS_ALONG_8_DIRECTIONS_2D, UPDATABLE_IDENTITY, X_MINUS_Y, X_PLUS_Y, Y_MINUS_X
 
Method Summary
Modifier and Type Method and Description
abstract  void set(double[] x, double newResult)
          Correct some of x arguments so that get(x) will be, as possible, equal to newResult.
 java.lang.String toString()
          Returns a brief string description of this object.
 
Methods inherited from class net.algart.math.functions.PowerFunc
get, get, get, get, get, getBinaryInstance, getInstance, getInstance, getStrictBinaryInstance, getStrictInstance, getStrictInstance, getUpdatableInstance, getUpdatableStrictInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.algart.math.functions.Func
get, get, get, get, get, get
 

Method Detail

set

public abstract void set(double[] x,
                         double newResult)
Description copied from interface: Func.Updatable
Correct some of x arguments so that get(x) will be, as possible, equal to newResult. For example, if this is one-argument function f(x), and its inverse function is g(y) (g(f(x))=x), then this method should assign x[0]=g(newResult).

This method does not guarantee the precise equality get(x)==newResult. (Usually, it is impossible due to limited precision of floating-point calculations.) But this method should try to provide this equality (after its call) with, as possible, maximal possible precision.

Specified by:
set in interface Func.Updatable
Parameters:
x - the function arguments.
newResult - the desired function result.

toString

public java.lang.String toString()
Returns a brief string description of this object.

Overrides:
toString in class PowerFunc
Returns:
a brief string description of this object.