public class NBSplinesTypeIDerivative
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
double[][] |
_coeffs |
| Constructor and Description |
|---|
NBSplinesTypeIDerivative(int basisIndex,
int order,
double[] fullKnots) |
| Modifier and Type | Method and Description |
|---|---|
static double[][] |
derivativeCoeffs(double[][] origCoeffs) |
static double[][] |
extractDerivativeCoeff(hex.genmodel.algos.gam.NBSplinesTypeI left,
hex.genmodel.algos.gam.NBSplinesTypeI rite,
double[] knots,
int basisIndex,
double parentConst)
This function extracts the coefficients for the derivative of a NBSplineTypeI (Mi,k(t)) as described in Section
VI of doc.
|
static NBSplinesTypeIDerivative[] |
form1stOrderDerivatives(int numBasis,
int order,
double[] fullKnots)
Method to generate an array of derivatives of NBSplineTypeI.
|
static double[][][] |
form2ndDerivCoeffs(int numBasis,
int order,
double[] fullKnots) |
static double[][] |
formDerivateProduct(double[][] firstCoeff,
double[][] secondCoeff)
Form product of derivative basis function for index firstIndex, secondIndex like M'i,k(t)*M'j,k(t).
|
static double[][] |
genISPenaltyMatrix(double[] knots,
int order)
Generate penalty matrix for I-spline as described in Section VI of doc.
|
static double[][] |
genMSPenaltyMatrix(double[] knots,
int order)
Generate penalty matrix for M-spline as described in Section III of doc 2.
|
public NBSplinesTypeIDerivative(int basisIndex,
int order,
double[] fullKnots)
public static double[][] extractDerivativeCoeff(hex.genmodel.algos.gam.NBSplinesTypeI left,
hex.genmodel.algos.gam.NBSplinesTypeI rite,
double[] knots,
int basisIndex,
double parentConst)
public static double[][] genISPenaltyMatrix(double[] knots,
int order)
knots - : containing all knots without duplicationorder - : order of original I-splinespublic static double[][] genMSPenaltyMatrix(double[] knots,
int order)
knots - : containing all knots without duplicationorder - : order of original I-splinespublic static double[][][] form2ndDerivCoeffs(int numBasis,
int order,
double[] fullKnots)
public static double[][] derivativeCoeffs(double[][] origCoeffs)
public static NBSplinesTypeIDerivative[] form1stOrderDerivatives(int numBasis, int order, double[] fullKnots)
numBasis: - integer representing number of basis functions for knot sequenceorder: - order of NBSplineTypeI to generatefullKnots: - complete knot sequence with duplicate knots at both endspublic static double[][] formDerivateProduct(double[][] firstCoeff,
double[][] secondCoeff)