public class BinghamFitter extends SphericalDistributionFitter
Modifier and Type | Method and Description |
---|---|
static double |
bingc(double ak1,
double ak2)
Automatically chooses which type of numerical method to use.
|
static double |
bingc(double ak1,
double ak2,
double[] der,
double[] hes)
Get the normalization constant and its derivatives.
|
static double[] |
bngpar(double t2,
double t1)
Gets the Bingham parameters
k1, k2 (concentration parameters) and bingC (normalization constant). |
static BinghamDistribution |
getBinghamDistribution(EigenSystem3D tBarEig)
Get a Bingham distribution from a scatter matrix of samples.
|
static BinghamDistribution |
getBinghamDistribution(EigenSystem3D tBarEig,
java.util.Random ran)
Get a Bingham distribution from a scatter matrix of samples, and also specify the random number generator used by the distribution.
|
static void |
main(java.lang.String[] args) |
tBar, tBarEigenSystem, tBarEigenSystem, tBarEigenSystem, tBarEigenSystem
public static BinghamDistribution getBinghamDistribution(EigenSystem3D tBarEig) throws ConvergenceException
ConvergenceException
public static BinghamDistribution getBinghamDistribution(EigenSystem3D tBarEig, java.util.Random ran) throws ConvergenceException
ConvergenceException
public static double[] bngpar(double t2, double t1) throws ConvergenceException
k1, k2
(concentration parameters) and bingC
(normalization constant).
Specify the eigenvalues in descending order. t2 > t1 (numbering scheme of Watson).
{k1, k2, bingc}
.ConvergenceException
public static double bingc(double ak1, double ak2) throws ConvergenceException
ak1
- kappa1 < 0ak2
- 0 > kappa2 > kappa1ConvergenceException
public static double bingc(double ak1, double ak2, double[] der, double[] hes) throws ConvergenceException
ak1
- kappa1 < 0ak2
- kappa2 > kappa1der
- {dC/dk_1 dC/dk_2}hes
- {d^2C/dk_1^2, d^2C/dk_1dk_2, d^2C/dk_2dk_1, d^2C/dk_2^2}ConvergenceException
public static void main(java.lang.String[] args)