Skip to content

Commit

Permalink
Update skew.go
Browse files Browse the repository at this point in the history
  • Loading branch information
TimLai666 committed Sep 1, 2024
1 parent a5c1988 commit f478bed
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions stats/skew.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,8 @@ func calculateSkewPearson(sample insyra.IDataList) interface{} {
}
THREE := new(big.Rat).SetInt64(3)
numerator := new(big.Rat).Mul(THREE, new(big.Rat).Sub(mean, median))
<<<<<<< Updated upstream

stdev := sample.Stdev()
if stdev == nil {
insyra.LogWarning("DataList.Skew(): Stdev is nil, returning nil.")
return nil
}

denominator := new(big.Rat).SetFloat64(stdev.(float64))
if denominator.Cmp(new(big.Rat).SetInt64(0)) == 0 {
=======
denominator := sample.Stdev(true).(*big.Rat)

Check failure on line 66 in stats/skew.go

View workflow job for this annotation

GitHub Actions / build

too many arguments in call to sample.Stdev
if denominator == new(big.Rat).SetFloat64(0.0) {
>>>>>>> Stashed changes
insyra.LogWarning("DataList.Skew(): Denominator is 0, returning nil.")
return nil
}
Expand Down

0 comments on commit f478bed

Please sign in to comment.