| SparsePlsDaCalculate(DoubleMatrix, Factor, Int32, Int32) Method |
Performs the sparse Partial Least squares calculation for the given
data.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public void Calculate(
DoubleMatrix X,
Factor yFactor,
int numComponents = 2,
int[] keepX = null
)
Public Sub Calculate (
X As DoubleMatrix,
yFactor As Factor,
Optional numComponents As Integer = 2,
Optional keepX As Integer() = Nothing
)
public:
void Calculate(
DoubleMatrix^ X,
Factor^ yFactor,
int numComponents = 2,
array<int>^ keepX = nullptr
)
member Calculate :
X : DoubleMatrix *
yFactor : Factor *
?numComponents : int *
?keepX : int[]
(* Defaults:
let _numComponents = defaultArg numComponents 2
let _keepX = defaultArg keepX null
*)
-> unit
Parameters
- X DoubleMatrix
- Matrix of predictor variables.
- yFactor Factor
- Factor class for the discrete observation
variable.
- numComponents Int32 (Optional)
- The number of components to keep in the
model.
- keepX Int32 (Optional)
- numeric vector of length ncomp, the number of variables to keep in X-loadings.
A null value (the default) keeps all variables in the model.
See Also