Exemplo n.º 1
0
 public DiscreteSample(double[] samples)
 {
     _calculator          = new SampleCalculator(this);
     Volume               = _calculator.CalculateVolume(samples);
     VariationRange       = _calculator.CalculateVariationRange(samples);
     VariationScope       = _calculator.CalculateVariationScope();
     FrequencyRange       = _calculator.CalculateFrequencyRange();
     Average              = _calculator.CalculateAverage();
     Mode                 = _calculator.CalculateMode();
     Median               = _calculator.CalculateMedian();
     Dispersion           = _calculator.CalculateDispersion();
     Asymmetry            = _calculator.CalculateAsymmetry();
     Excess               = _calculator.CalculateExcess();
     VariationCoefficient = _calculator.CalculateVariationCoefficient();
     Writer               = SampleWriterFactory.CreateSampleWriter(this);
 }
Exemplo n.º 2
0
 public NonDiscreteSample(double[] samples)
 {
     _calculator              = new NonDiscreteSampleCalculator(this);
     Volume                   = _calculator.CalculateVolume(samples);
     VariationRange           = _calculator.CalculateVariationRange(samples);
     VariationScope           = _calculator.CalculateVariationScope();
     IntervalAmount           = _calculator.CalculateIntervalAmount();
     IntervalStep             = _calculator.CalculateIntervalStep();
     FrequencyRange           = _calculator.CalculateFrequencyRange();
     Average                  = _calculator.CalculateAverage();
     Mode                     = _calculator.CalculateMode();
     Median                   = _calculator.CalculateMedian();
     Dispersion               = _calculator.CalculateDispersion();
     GroupAverages            = _calculator.CalculateGroupAverages();
     GroupDispersions         = _calculator.CalculateGroupDispersions();
     AverageGroupDispersion   = _calculator.CalculateAverageGroupDispersion();
     InterGroupDispersion     = _calculator.CalculateInterGroupDispersion();
     DeterminationCoefficient = _calculator.CalculateDeterminationCoefficient();
     Asymmetry                = _calculator.CalculateAsymmetry();
     Excess                   = _calculator.CalculateExcess();
     VariationCoefficient     = _calculator.CalculateVariationCoefficient();
     Writer                   = SampleWriterFactory.CreateSampleWriter(this);
 }