Class GaussianProcessRegression.JointPrediction
java.lang.Object
smile.regression.GaussianProcessRegression.JointPrediction
- Enclosing class:
GaussianProcessRegression<T>
The joint prediction of multiple data points.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal DenseMatrixThe covariance matrix of joint predictive distribution at query points.final double[]The mean of predictive distribution at query points.final double[]The standard deviation of predictive distribution at query points.final T[]The query points where the GP is evaluated. -
Constructor Summary
ConstructorsConstructorDescriptionJointPrediction(T[] x, double[] mu, double[] sd, DenseMatrix cov) Constructor. -
Method Summary
-
Field Details
-
x
The query points where the GP is evaluated. -
mu
public final double[] muThe mean of predictive distribution at query points. -
sd
public final double[] sdThe standard deviation of predictive distribution at query points. -
cov
The covariance matrix of joint predictive distribution at query points.
-
-
Constructor Details
-
JointPrediction
Constructor.- Parameters:
x- the query points.mu- the mean of predictive distribution at query points.sd- the standard deviation of predictive distribution at query points.cov- the covariance matrix of joint predictive distribution at query points.
-
-
Method Details
-
sample
public double[][] sample(int n) Draw samples from Gaussian process.- Parameters:
n- The number of samples drawn from the Gaussian process.- Returns:
- n samples drawn from Gaussian process.
-
toString
-