public Fit ( double observations, double weights ) : IDistribution | ||
observations | double | The array of observations to fit the model against. |
weights | double | The weight vector containing the weight for each of the samples. |
Результат | IDistribution |
public void FitTest() { PoissonDistribution target = new PoissonDistribution(0); double[] observations = { 0.2, 0.7, 1.0, 0.33 }; target.Fit(observations); double expected = 0.5575; Assert.AreEqual(expected, target.Mean); }