| LogisticRegressionParameterCalc(DoubleMatrix, Int32, PredicateDouble, Boolean) Constructor |
Constructs a LogisticRegression instance optionally adding an intercept
parameter. The provided matrix of values contains the observation values
as one of its columns. The rest of the columns of the matrix forms the
regression matrix. The floating point observation value in the matrix are
converted to a vector of dichotomous values by applying the give predicate
function.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public LogisticRegression(
DoubleMatrix A,
int observationColIndex,
Predicate<double> obsPredicate,
bool addIntercept
)
Public Sub New (
A As DoubleMatrix,
observationColIndex As Integer,
obsPredicate As Predicate(Of Double),
addIntercept As Boolean
)
public:
LogisticRegression(
DoubleMatrix^ A,
int observationColIndex,
Predicate<double>^ obsPredicate,
bool addIntercept
)
new :
A : DoubleMatrix *
observationColIndex : int *
obsPredicate : Predicate<float> *
addIntercept : bool -> LogisticRegression
Parameters
- A DoubleMatrix
- A regression matrix with a column of observations values.
- observationColIndex Int32
- Zero based index of the column in the
input matrix A which contains the observation values.
- obsPredicate PredicateDouble
- Rule for converting the floating point values in the
vector of observations to dichotomous value.
- addIntercept Boolean
- If true, a column of ones is prepended onto
the data in the regression matrix A, thus adding an intercept to
the model. If false, the data in the regression matrix is used as given.
See Also