Skip to content

Commit

Permalink
add population standard deviation computation
Browse files Browse the repository at this point in the history
  • Loading branch information
bg117 committed Mar 5, 2023
1 parent 941d9b8 commit b3a97f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion FrequencyDistributionTable/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ private void UpdateNonSetProps()
RaisePropertyChangedEvent(nameof(SampleVariance));
RaisePropertyChangedEvent(nameof(PopulationVariance));
RaisePropertyChangedEvent(nameof(SampleStdDeviation));

RaisePropertyChangedEvent(nameof(PopulationStdDeviation));
}

public int ClassInterval
Expand Down Expand Up @@ -159,6 +159,8 @@ public decimal PopulationVariance

public decimal SampleStdDeviation => (decimal)Math.Sqrt((double)SampleVariance);

public decimal PopulationStdDeviation => (decimal)Math.Sqrt((double)PopulationVariance);

private decimal GetVarianceNumerator()
{
return Classes.Select(x =>
Expand Down

0 comments on commit b3a97f9

Please sign in to comment.