Modifier and Type | Field and Description |
---|---|
private double[][] |
_cov |
private int |
_dim |
private HMatrix |
_hmx |
private boolean |
_isValid |
private int |
_key |
private int |
_ndata |
private double[] |
_vals |
private double[][] |
_valsq |
private double[] |
_vec |
Constructor and Description |
---|
HMatrixBuilder(int n,
int key)
Construct an n x n HMatrixBuilder.
|
Modifier and Type | Method and Description |
---|---|
void |
accumulate(double[] dat)
Add the measurement vector to the accumulated HMatrix
|
private double[][] |
invert(double[][] mat,
int dim)
Invert the matrix
|
HMatrix |
read(String filename)
Reads the HMatrix from an ASCII file
|
String |
toString()
Output Stream
|
void |
validate()
Validates the HMatrix by performing the averages
|
void |
write(String filename,
String comment)
Writes out the HMatrix to an ASCII file
|
private double[][] _cov
private double[] _vec
private double[] _vals
private double[][] _valsq
private int _dim
private int _key
private int _ndata
private boolean _isValid
private HMatrix _hmx
public HMatrixBuilder(int n, int key)
n
- The dimension of the measurement space.key
- The key by which to index this HMatrix.public void accumulate(double[] dat)
dat
- The array of measurements.public void validate()
public String toString()
public HMatrix read(String filename)
filename
- The ASCII file from which to read.public void write(String filename, String comment)
filename
- The file to which to write.comment
- A comment for the header.private double[][] invert(double[][] mat, int dim)
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.