public class HitDerivative extends Object
Modifier | Constructor and Description |
---|---|
|
HitDerivative()
Default constructor
|
|
HitDerivative(HitDerivative hder)
copy constructor
|
|
HitDerivative(int size)
Constructor
|
|
HitDerivative(int size,
double[] arr)
constructor from an array
|
private |
HitDerivative(Matrix mtx)
constructor from implementation
|
Modifier and Type | Method and Description |
---|---|
double |
amax()
absolute maximum
|
double |
amin()
absolute minimum
|
boolean |
equals(HitDerivative hd)
equality
|
double |
get(int i,
int j)
access a derivatie element
|
Matrix |
matrix()
Return the underlying matrix.
|
double |
max()
maximum derivative element
|
double |
min()
minimum derivative element
|
HitDerivative |
minus(HitDerivative hd)
Subtraction
|
HitDerivative |
minusEquals(HitDerivative hder)
subtraction
|
boolean |
notEquals(HitDerivative hd)
inequality
|
HitDerivative |
plus(HitDerivative hd)
Addition
|
HitDerivative |
plusEquals(HitDerivative hder)
Addition in place, shouldn't this be void?
fix
|
void |
set(int i,
int j,
double val)
set a dervative element
|
int |
size()
return the # rows in the matrix
|
String |
toString()
output stream
|
private Matrix _mat
private int _size
private HitDerivative(Matrix mtx)
mtx
- explicit Matrix representation of the HitDerivativepublic HitDerivative()
public HitDerivative(int size)
size
- Size of the Hit measurementpublic HitDerivative(int size, double[] arr)
size
- Size of the Hit measurementarr
- array of hit derivatives, by completed rows (00, 01, 02, ..., 10, 12, ...)public HitDerivative(HitDerivative hder)
hder
- HitDerivative to replicatepublic Matrix matrix()
public int size()
public double get(int i, int j)
i
- first indexj
- second indexpublic void set(int i, int j, double val)
i
- first indexj
- second indexval
- value of (i,j)th element to setpublic double min()
public double max()
public double amin()
public double amax()
public HitDerivative plusEquals(HitDerivative hder)
hder
- HitDerivative to addpublic HitDerivative minusEquals(HitDerivative hder)
hder
- HitDerivative to subtractpublic HitDerivative plus(HitDerivative hd)
hd
- HitDerivative to addpublic HitDerivative minus(HitDerivative hd)
hd
- HitDerivative to subtractpublic boolean equals(HitDerivative hd)
hd
- HitDerivative to comparepublic boolean notEquals(HitDerivative hd)
hd
- HitDerivative to compareCopyright © 2016 Linear Collider Detector (LCD). All rights reserved.