public class EvenSHS extends LinearBasisSum
SFPD_PARAMSCALE
Constructor and Description |
---|
EvenSHS(double[] coeffs,
int order)
The constructor takes an array containing the spherical harmonic
coefficients in the format output by EvenSphHarmFitter.fit.
|
Modifier and Type | Method and Description |
---|---|
double |
anisotropy()
We can compute the anisotropy (sqrt of normalized second
moment) analytically.
|
LinearBasisFunction |
basisFunction(int i)
Returns the basis function with weight c[i].
|
Complex |
getCoeff(int l,
int m)
Returns a particular coefficient given the spherical harmonic order and
index.
|
double |
getRadius(double theta,
double phi)
Overridden to sum the spherical harmonics at the specified point.
|
double |
getRadius(double x,
double y,
double z)
Overridden to convert the Cartesian parameters to spherical polars and
call the getRadius(theta, phi).
|
java.lang.String |
getSettings()
Returns the parameters used in the basis sum as a string
|
java.lang.String |
toString()
Constructs a string containing the coefficients of the series.
|
numBasisFunctions
centralMoment, centralMoment, getHessian, getHessian, getPDs, getPDsRS, getSearchRadius, getStats, greatCircleCentralMoment, greatCircleIntegral, greatCirclePowerIntegral, kurtosis, mean, mean, moment, moment, normMoment, normMoment, numGreatCircleCentralMoment, numGreatCircleIntegral, numGreatCirclePowerIntegral, setConvThresh, setSearchRadius, skewness
public EvenSHS(double[] coeffs, int order)
coeffs
- [exitCode, log A^\star(0), c00, c20, Re(c21), Im(c21),
Re(c22), Im(c22), c40, Re(c41), Im(c41), ...]order
- The maximum order of the series.public double getRadius(double theta, double phi)
getRadius
in class SphericalFunction
theta
- The angle of colatitude.phi
- The angle of longitude.public double getRadius(double x, double y, double z)
getRadius
in class SphericalFunction
x
- x-coordinate.y
- y-coordinate.z
- z-coordinate.public java.lang.String toString()
toString
in class java.lang.Object
public Complex getCoeff(int l, int m)
l
- order of the spherical harmonic.m
- index of the spherical harmonic.public double anisotropy()
anisotropy
in class SphericalFunction
public LinearBasisFunction basisFunction(int i)
LinearBasisSum
basisFunction
in class LinearBasisSum
i
- The index of the basis function.public java.lang.String getSettings()
getSettings
in class LinearBasisSum