Commit 70363686 authored by Davis King's avatar Davis King

Fixed error in pyramid_rate() formula.

parent c324a65e
......@@ -974,7 +974,7 @@ namespace dlib
template <unsigned int N>
double pyramid_rate(const pyramid_down<N>&)
{
return N/(N+1.0);
return (N-1.0)/N;
}
// ----------------------------------------------------------------------------------------
......
......@@ -205,7 +205,7 @@ namespace dlib
);
/*!
ensures
- returns N/(N+1.0)
- returns (N-1.0)/N
!*/
// ----------------------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment