The frequency counts of the values are: fx1 fx2 fx3 ... fxN
(the value of B is given as a parameter of the problem formulation)
|
into a single point hr of the histogram.
Where:
|
Example:
|
|
It is common to use |hr - xs+1| (absolute value) or (hr - xs+1)2 as expression for the error.
The expression (hr - xs+1)2 is prefered because it is differentiable .
|
The following figure shows what this error represents:
![]() |
The square error is to total distance between the actual value and the histogram value
Obviously:
|
![]() |
|
The histogram value of bucket r is hr
Then:
|
|
|