numericalMethods.calculus.minimizing
Class LineND

java.lang.Object
  extended bynumericalMethods.calculus.minimizing.LineND
All Implemented Interfaces:
DoubleArrayValued, DoubleParametrized, java.io.Serializable
Direct Known Subclasses:
LineNDEvaluator

public class LineND
extends java.lang.Object
implements DoubleArrayValued, DoubleParametrized, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
LineND(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
 

Constructor Detail

LineND

public LineND(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: DoubleParametrized
Set the double parameter.

Specified by:
setDoubleParameter in interface DoubleParametrized
Parameters:
p - the value to which the double parameter is set.

getDoubleArrayValue

public double[] getDoubleArrayValue()

getDoubleArrayValueLength

public final int getDoubleArrayValueLength()
Description copied from interface: DoubleArrayValued
Get the length of the double array value.

Specified by:
getDoubleArrayValueLength in interface DoubleArrayValued
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: DoubleArrayValued
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 DoubleArrayValued.getDoubleArrayValueLength(). The other elements of value should not be changed.

Specified by:
getDoubleArrayValue in interface DoubleArrayValued
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.