public class NBSplinesTypeI
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
NBSplinesTypeI.MSplineBasis
This class describes a M spline using the recursive formula in equation 5 of the doc.
|
Modifier and Type | Field and Description |
---|---|
double |
_commonConst |
int |
_nKnots |
double[][] |
_nodeCoeffs |
int |
_order |
int |
_totBasisFuncs |
Constructor and Description |
---|
NBSplinesTypeI(double[] knots,
int order,
int basisIndex,
int numKnotInt)
Generate SBSpline Type I in Section III of doc I
|
Modifier and Type | Method and Description |
---|---|
static double[][] |
extractCoeffs(NBSplinesTypeI root,
int basisIndex,
double parentConst)
extract coefficients of NBSplineType I in the process of generating penalty matrix in Section VI of doc.
|
static void |
extractNBSplineCoeffs(NBSplinesTypeI root,
int order,
double[] coeffParent,
double constParent,
int basisIndex)
Given root spline, this method will extract the coefficients of spline as described in Section VI in order to
generate the penalty matrix using recursion.
|
static NBSplinesTypeI |
formBasisDeriv(double[] knots,
int order,
int basisIndex,
int numKnotInt)
Given an basis function index, order and knot sequence with duplication over the input range of interest,
we build the whole binary tree for NBSplineType I for Mi,k(t) down to the lowest level with splines of order
1 as in Mi,1(t).
|
protected static NBSplinesTypeI.MSplineBasis[] |
genBasisFunctions(int totBasisFuncs,
int order,
double[] knots) |
void |
setConstNChildCoeffs(double[] knots,
int basisIndex) |
public final int _order
public double[][] _nodeCoeffs
public double _commonConst
public final int _totBasisFuncs
public final int _nKnots
public NBSplinesTypeI(double[] knots, int order, int basisIndex, int numKnotInt)
knots
- : knots that span the whole input range of interest with no duplicationorder
- : order of splinebasisIndex
- : offset added to basis function index, recall lower order splines have index i and i+1 equation 5 of docnumKnotInt
- : integer denoting knot intervals over which polynomial coefficients are definedprotected static NBSplinesTypeI.MSplineBasis[] genBasisFunctions(int totBasisFuncs, int order, double[] knots)
public void setConstNChildCoeffs(double[] knots, int basisIndex)
public static void extractNBSplineCoeffs(NBSplinesTypeI root, int order, double[] coeffParent, double constParent, int basisIndex)
public static double[][] extractCoeffs(NBSplinesTypeI root, int basisIndex, double parentConst)
public static NBSplinesTypeI formBasisDeriv(double[] knots, int order, int basisIndex, int numKnotInt)
knots
- : knot sequence with duplicationorder
- : order (k) of spline to buildbasisIndex
- : offset to added in order to address spline of lower ordernumKnotInt
- : length of knots with duplication over the whole range of input of interest.