Skip to content

Commit

Permalink
cast away some silly warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Mar 1, 2020
1 parent ee20312 commit 5ae44db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions filters/StatsFilter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ typedef std::vector<double> DataVector;
{
if (M2 == 0 || m_cnt <= 2 || !m_advanced)
return 0.0;
double c(m_cnt);
double c((double)m_cnt);
return populationSkewness() * std::sqrt(c) * std::sqrt(c - 1) / (c - 2);
}
double skewness() const
Expand All @@ -112,14 +112,14 @@ typedef std::vector<double> DataVector;
{
if (M2 == 0 || m_cnt <= 3 || !m_advanced)
return 0;
double c(m_cnt);
double c((double)m_cnt);
return populationKurtosis() * (c + 1) * (c - 1) / ((c - 2) * (c - 3));
}
double sampleExcessKurtosis() const
{
if (M2 == 0 || m_cnt <= 3 || !m_advanced)
return 0;
double c(m_cnt);
double c((double)m_cnt);
return sampleKurtosis() - 3 * (c - 1) * (c - 1) / ((c - 2) * (c - 3));
}
double kurtosis() const
Expand Down

0 comments on commit 5ae44db

Please sign in to comment.