calcError

(method of PoleFigure)

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

Syntax

e = calcError(pf,pf2) % compares two different [[PoleFigure_index.html,PoleFigure]] with same [[S2Grid_index.html,S2Grid]]
e = calcError(pf,rec) % compares [[PoleFigure_index.html,PoleFigure]] with the Recalculated [[ODF_index.html,ODF]]

Input

pf,pf2

PoleFigure

rec

ODF

param Options that control the calcError behavior
Parameter Description
'RP'

(default)

'l1'

L1 error

'l2'

L2 error

Output

e

error

See also

ODF/calcError, PoleFigure/calcNormalization, PoleFigure/scale