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 );
39 return std::sqrt( nom / 3.0 ) / mean;
Interface to compute various measures on tensors.
This is a base class for everything which has a Name,Description,Icon and Properties (=NDIP).
WRA()
Creates an object to perform the computation.
virtual double tensorToScalar(const WVector3d &evals, const WTensorSym< 2, 3, float > &tensor)
Actual RA computation takes place inhere.
Implements a symmetric tensor that has the same number of components in every direction.