numericalMethods.function
Interface nmDoubleArrayParametrized

All Known Implementing Classes:
SearchMI

public interface nmDoubleArrayParametrized

Interface for objects that represent functions of a double array parameter.


Method Summary
 int getDoubleArrayParameterLength()
          Get the length of the double array parameter.
 void setDoubleArrayParameter(double[] p, int offset)
          Set the double array parameter by the values in a double[].
 

Method Detail

getDoubleArrayParameterLength

public int getDoubleArrayParameterLength()
Get the length of the double array parameter.
Returns:
the length of the double array parameter.

setDoubleArrayParameter

public void setDoubleArrayParameter(double[] p,
                                    int offset)
Set the double array parameter by the values in a double[]. The values for the double array parameter are read from p[offset,…,offset + len - 1], where len is the value returned by getDoubleArrayParameterLength(). The parameter p should not be changed.
Parameters:
p - a double[] whith length at least offset+len holding the values to which the double array parameter is set.
offset - the position in p where the double array parameter is read from.