Package org.ojalgo.function
Class PrimitiveFunction.SampleDomain
- java.lang.Object
-
- org.ojalgo.function.PrimitiveFunction.SampleDomain
-
- Enclosing class:
- PrimitiveFunction
public static final class PrimitiveFunction.SampleDomain extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private double
myIncrement
private int
myNumberOfSamples
private double
myPeriod
-
Constructor Summary
Constructors Constructor Description SampleDomain(double period, int nbSamples)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PrimitiveFunction.SampleDomain
adjustToPowerOf2()
Adjusts the number of samples to the smallest power of 2 that is not less than the current number of samples.double
argumant(int index)
double[]
arguments()
double
increment()
double
period()
int
size()
-
-
-
Method Detail
-
adjustToPowerOf2
public PrimitiveFunction.SampleDomain adjustToPowerOf2()
Adjusts the number of samples to the smallest power of 2 that is not less than the current number of samples.
-
argumant
public double argumant(int index)
-
arguments
public double[] arguments()
-
increment
public double increment()
-
period
public double period()
-
size
public int size()
-
-