public class BayesianRobustLinearRegression.IncrementalEstimator.SufficientStatistic extends AbstractSufficientStatistic<InputOutputPair<? extends Vectorizable,java.lang.Double>,MultivariateGaussianInverseGammaDistribution>
count
Constructor and Description |
---|
SufficientStatistic(MultivariateGaussianInverseGammaDistribution prior)
Creates a new instance of SufficientStatistic
|
Modifier and Type | Method and Description |
---|---|
MultivariateGaussianInverseGammaDistribution |
create()
Creates a new instance of an object.
|
void |
create(MultivariateGaussianInverseGammaDistribution distribution)
Modifies the given distribution with the parameters indicated by the
sufficient statistics
|
Matrix |
getCovarianceInverse()
Getter for covarianceInverse
|
int |
getDimensionality()
Gets the dimensionality of the underlying Gaussian
|
Vector |
getMean()
Computes the mean of the Gaussian, but involves a matrix
inversion and multiplication, so it's expensive.
|
double |
getOutputSumSquared()
Getter for outputSumSquared
|
double |
getScale()
Computes the scale component for the inverse-gamma distribution
|
double |
getShape()
Computes the shape component for the inverse-gamma distribution
|
Vector |
getZ()
Getter for z
|
void |
update(InputOutputPair<? extends Vectorizable,java.lang.Double> value)
Updates the sufficient statistics from the given value
|
clone, getCount, setCount, update
public SufficientStatistic(MultivariateGaussianInverseGammaDistribution prior)
prior
- Prior on the weightspublic void update(InputOutputPair<? extends Vectorizable,java.lang.Double> value)
SufficientStatistic
value
- Value to update the sufficient statisticspublic MultivariateGaussianInverseGammaDistribution create()
Factory
public void create(MultivariateGaussianInverseGammaDistribution distribution)
SufficientStatistic
distribution
- Distribution to modify by side effectpublic Matrix getCovarianceInverse()
public Vector getZ()
public Vector getMean()
public int getDimensionality()
public double getOutputSumSquared()
public double getShape()
public double getScale()