calcError edit page

RP and mean square error

calcError(pf,rec) calculates reconstruction error between meassured intensities and the recalcuated ODF or between two meassured pole figures. It can be specified whether the RP error or the mean square error is calculated. The scaling coefficients are calculated by the function PoleFigure/calcNormalization


e = calcError(pf,pf2) % compares two different <PoleFigure.PoleFigure.html PoleFigure> with same <S2Grid.S2Grid.html S2Grid>
e = calcError(pf,rec) % compares <PoleFigure.PoleFigure.html PoleFigure> with the Recalculated <ODF.ODF.html ODF>


pf,pf2 PoleFigure
rec ODF


e error


RP RP value (default) |pfmeas - pfcalc|./ pfcalc
l1 l1 error |pfmeas - pfcalc|
l2 l2 error |pfmeas - pfcalc|.^2

See also

ODF.calcError PoleFigure.calcNormalization PoleFigure.scale