public void Update(DistributionsPair distributionsPair, int length) { RandomAlgebra.Clear(); MonteCarlo.Clear(); if (distributionsPair.RandomAlgebra != null) { FillData(RandomAlgebra, distributionsPair.RandomAlgebra, length); } if (distributionsPair.MonteCarlo != null) { FillData(MonteCarlo, distributionsPair.MonteCarlo, length); } }
private void UpdateParameters(double p) { Dispatcher.UIThread.InvokeAsync(() => { DistributionParameters.Clear(); }); AddParameter(new DistributionParameter("t, ms", RandomsAlgebraTime?.TotalMilliseconds, MonteCarloTime?.TotalMilliseconds)); AddParameter(new DistributionParameter("μ", RandomAlgebra?.Mean, MonteCarlo?.Mean)); AddParameter(new DistributionParameter("σ", RandomAlgebra?.StandardDeviation, MonteCarlo?.StandardDeviation)); AddParameter(new DistributionParameter("σ²", RandomAlgebra?.Variance, MonteCarlo?.Variance)); AddParameter(new DistributionParameter("U⁺", RandomAlgebra?.QuantileUpper(p), MonteCarlo?.QuantileUpper(p))); AddParameter(new DistributionParameter("U⁻", RandomAlgebra?.QuantileLower(p), MonteCarlo?.QuantileLower(p))); AddParameter(new DistributionParameter("γ", RandomAlgebra?.Skewness, MonteCarlo?.Skewness)); AddParameter(new DistributionParameter("U±", RandomAlgebra?.QuantileRange(p), MonteCarlo?.QuantileRange(p))); }