public void FitTest1()
{
IDistribution target = CreateMultivariateContinuousDistribution(); // TODO: Initialize to an appropriate value
Array observations = new double[][]
{
new double[] { 1, 1 },
new double[] { 1, 1 },
};
bool thrown;
IFittingOptions options = new NormalOptions()
{
Regularization = 0.1
};
thrown = false;
try
{
target.Fit(observations);
}
catch
{
thrown = true;
}
Assert.AreEqual(true, thrown);
thrown = false;
try
{
target.Fit(observations, options);
}
catch
{
thrown = true;
}
Assert.AreEqual(false, thrown);
}