Linear Discriminant Analysis Constructor
Definition
Namespace: Numerics.NET.Statistics.Multivariate
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Overload List
Linear | Constructs a new LinearDiscriminantAnalysis. |
Linear | Constructs a new LinearDiscriminantAnalysis. |
Linear | Constructs a fitted linear discriminant analysis model. |
Linear | Constructs a new LinearDiscriminantAnalysis. |
Linear | Constructs a new LinearDiscriminantAnalysis. |
Linear | Constructs a new SimpleRegressionModel. |
LinearDiscriminantAnalysis(ICategoricalVector, Vector<Double>[])
Constructs a new LinearDiscriminantAnalysis.
public LinearDiscriminantAnalysis(
ICategoricalVector dependentVariable,
params Vector<double>[] independentVariables
)
Parameters
- dependentVariable ICategoricalVector
- A categorical vector that specifies the dependent variable.
- independentVariables Vector<Double>[]
- An array of vectors that contain the independent variables.
Exceptions
Argument | dependentVariable is null. -or- independentVariables is null. |
LinearDiscriminantAnalysis(IDataFrame, String)
Constructs a new LinearDiscriminantAnalysis.
public LinearDiscriminantAnalysis(
IDataFrame dataFrame,
string formula
)
Parameters
- dataFrame IDataFrame
- A data frame containing the data for the regression.
- formula String
- A formula that specifies the variables in the model.
Exceptions
Format | The formula is not in the correct format. |
LinearDiscriminantAnalysis(ModelInput, Vector<Double>[])
Constructs a fitted linear discriminant analysis model.
public LinearDiscriminantAnalysis(
ModelInput specification,
Vector<double>[] coefficients
)
Parameters
- specification ModelInput
- coefficients Vector<Double>[]
Remarks
Models created with this constructor do not carry any information about the source data or the fit results.
LinearDiscriminantAnalysis(ICategoricalVector, Vector<Double>[], Vector<Double>)
Constructs a new LinearDiscriminantAnalysis.
public LinearDiscriminantAnalysis(
ICategoricalVector dependentVariable,
Vector<double>[] independentVariables,
Vector<double>? weights = null
)
Parameters
- dependentVariable ICategoricalVector
- A vector that specifies the dependent variable.
- independentVariables Vector<Double>[]
- An array of vectors that contain the independent variables.
- weights Vector<Double> (Optional)
- Optional. A vector containing the case weights.
Exceptions
Argument | dependentVariable is null. -or- independentVariables is null. |
LinearDiscriminantAnalysis(IDataFrame, String, String[])
Constructs a new LinearDiscriminantAnalysis.
public LinearDiscriminantAnalysis(
IDataFrame dataFrame,
string dependentVariable,
params string[] independentVariables
)
Parameters
- dataFrame IDataFrame
- A data frame containing the data for the regression.
- dependentVariable String
- The name of the dependent variable.
- independentVariables String[]
- An array containing the names of the independent variable.
LinearDiscriminantAnalysis(Vector<Double>, Matrix<Double>, Vector<Double>)
Constructs a new SimpleRegressionModel.
public LinearDiscriminantAnalysis(
Vector<double> dependentData,
Matrix<double> independentData,
Vector<double>? weights = null
)
Parameters
Remarks
The columns
Exceptions
Argument | dependentData is null. -or- independentData is null. |