numericalMethods.calculus.minimizing
Class nmLineND

java.lang.Object
  |
  +--numericalMethods.calculus.minimizing.nmLineND
All Implemented Interfaces:
nmDoubleArrayValued, nmDoubleParametrized, java.io.Serializable
Direct Known Subclasses:
nmLineNDEvaluator

public class nmLineND
extends java.lang.Object
implements nmDoubleArrayValued, nmDoubleParametrized, java.io.Serializable

See Also:
Serialized Form

Field Summary
(package private)  double[] direction
           
(package private)  int n
           
(package private)  double[] point
           
(package private)  double t
           
 
Constructor Summary
nmLineND(double[] aPoint, double[] aDirection)
           
 
Method Summary
 double[] getDirection()
          Get the value of direction.
 double[] getDoubleArrayValue()
           
 void getDoubleArrayValue(double[] value, int offset)
          Writes the double array value into a double[].
 int getDoubleArrayValueLength()
          Get the length of the double array value.
 int getN()
          Get the value of n.
 double[] getPoint()
          Get the value of point.
 double getT()
          Get the value of t.
 void getValue(double[] value)
           
 void setDirection(double[] v)
          Set the value of direction.
 void setDoubleParameter(double p)
          Set the double parameter.
 void setN(int v)
          Set the value of n.
 void setPoint(double[] v)
          Set the value of point.
 void setT(double v)
          Set the value of t.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

point

double[] point

direction

double[] direction

n

int n

t

double t
Constructor Detail

nmLineND

public nmLineND(double[] aPoint,
                double[] aDirection)
Method Detail

getT

public double getT()
Get the value of t.
Returns:
Value of t.

setT

public void setT(double v)
Set the value of t.
Parameters:
v - Value to assign to t.

getN

public int getN()
Get the value of n.
Returns:
Value of n.

setN

public void setN(int v)
Set the value of n.
Parameters:
v - Value to assign to n.

getDirection

public double[] getDirection()
Get the value of direction.
Returns:
Value of direction.

setDirection

public void setDirection(double[] v)
Set the value of direction.
Parameters:
v - Value to assign to direction.

getPoint

public double[] getPoint()
Get the value of point.
Returns:
Value of point.

setPoint

public void setPoint(double[] v)
Set the value of point.
Parameters:
v - Value to assign to point.

setDoubleParameter

public void setDoubleParameter(double p)
Description copied from interface: nmDoubleParametrized
Set the double parameter.
Specified by:
setDoubleParameter in interface nmDoubleParametrized
Following copied from interface: numericalMethods.function.nmDoubleParametrized
Parameters:
p - the value to which the double parameter is set.

getDoubleArrayValue

public double[] getDoubleArrayValue()

getDoubleArrayValueLength

public final int getDoubleArrayValueLength()
Description copied from interface: nmDoubleArrayValued
Get the length of the double array value.
Specified by:
getDoubleArrayValueLength in interface nmDoubleArrayValued
Following copied from interface: numericalMethods.function.nmDoubleArrayValued
Returns:
the length of the double array value.

getValue

public final void getValue(double[] value)

getDoubleArrayValue

public final void getDoubleArrayValue(double[] value,
                                      int offset)
Description copied from interface: nmDoubleArrayValued
Writes the double array value into a double[]. When the method returns, value[offset,…,offset+len-1] contains the double array value, where len is the value returned by nmDoubleArrayValued.getDoubleArrayValueLength(). The other elements of value should not be changed.
Specified by:
getDoubleArrayValue in interface nmDoubleArrayValued
Following copied from interface: numericalMethods.function.nmDoubleArrayValued
Parameters:
value - a double[] whith length at least offset+len, into which the double array value is copied.
offset - the position in value where the double array value is copied to.