36 double mean = ( l[0] + l[1] + l[2] ) / 3.0;
37 double nom = ( l[0] - mean ) * ( l[0] - mean ) + ( l[1] - mean ) * ( l[1] - mean ) + ( l[2] - mean ) * ( l[2] - mean );
38 double denom = l[0] * l[0] + l[1] * l[1] + l[2] * l[2];
40 return std::sqrt( 1.5 * nom / denom );
Interface to compute various measures on tensors.
virtual double tensorToScalar(const WVector3d &evals, const WTensorSym< 2, 3, float > &tensor)
Actual FA computation takes place inhere.
WFA()
Creates an object to perform the computation.
This is a base class for everything which has a Name,Description,Icon and Properties (=NDIP).
Implements a symmetric tensor that has the same number of components in every direction.