java.lang.Object
net.finmath.montecarlo.conditionalexpectation.LinearRegression
Performs a linear regression on random variables implementing RandomVariable.
- Author:
- Christian Fries
-
Constructor Summary
ConstructorsConstructorDescriptionLinearRegression(RandomVariable[] basisFunctions)
Create the linear regression with a set of basis functions. -
Method Summary
Modifier and TypeMethodDescriptiondouble[]
Get the vector of regression coefficients.
-
Constructor Details
-
LinearRegression
Create the linear regression with a set of basis functions.- Parameters:
basisFunctions
- A vector of (independent) random variables to be used as basis functions.
-
-
Method Details
-
getRegressionCoefficients
Get the vector of regression coefficients.- Parameters:
value
- The random variable to regress.- Returns:
- The vector of regression coefficients.
-