public class BasisFunctionGenerator extends Object
| Constructor and Description |
|---|
BasisFunctionGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected Function<Double,Double> |
generate(BasisFunctionKnots data,
int index)
Generate the i^th basis function
|
List<Function<Double,Double>> |
generateSet(BasisFunctionKnots knots)
Generate a set of b-splines with a given polynomial degree on the specified knots.
|
List<Function<double[],Double>> |
generateSet(BasisFunctionKnots[] knots)
Generate a set of N-dimensional b-splines as the produce of 1-dimensional b-splines with a given polynomial degree.
|
public List<Function<Double,Double>> generateSet(BasisFunctionKnots knots)
knots - holder for the knots and degreepublic List<Function<double[],Double>> generateSet(BasisFunctionKnots[] knots)
knots - holder for the knots and degree in each dimensionprotected Function<Double,Double> generate(BasisFunctionKnots data, int index)
data - Container for the knots and degree of the basis functionindex - The index (from zero) of the function. Must be in range 0 to data.getNumSplines() (exclusive)
For example if the degree is 1, and index is 0, this will cover the first three knots.Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.