public class PrincipalAxesLineFitter extends Object
Modifier and Type | Field and Description |
---|---|
private double[] |
_centroid |
private double[] |
_dircos |
private Matrix |
_dircov |
private double |
_phi |
private Matrix |
_tensor |
private double |
_theta |
Constructor and Description |
---|
PrincipalAxesLineFitter()
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
double[] |
centroid()
Returns the (x, y, z) centroid of the set of points.
|
double[] |
dircos()
Returns the direction cosines of the set of points.
|
Matrix |
dirCovariance()
Returns the uncertainty on the direction cosines.
|
void |
fit(double[][] points)
derive the line parameters given the moment of inertia tensor.
|
double |
phi()
The phi angle of the centroid
|
double |
theta()
The theta angle of the centroid
|
private Matrix _tensor
private double[] _centroid
private double[] _dircos
private Matrix _dircov
private double _phi
private double _theta
public void fit(double[][] points)
points
- the moment of inertia tensorpublic double[] centroid()
public double[] dircos()
public Matrix dirCovariance()
public double phi()
public double theta()
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.