public class B_VectorScheme extends DW_Scheme
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
VERSION
String that identifies this scheme version in the scheme file.
|
Constructor and Description |
---|
B_VectorScheme(double[][] gradDir,
double[] bVal) |
Modifier and Type | Method and Description |
---|---|
static B_VectorScheme |
elecPointSetScheme(int M,
int N,
double b)
For backwards compatibility, allow construction at run time (no scheme file) given the
number of zero and non-zero measurements and a fixed b-value.
|
DW_Scheme |
flipX()
Negates the X component of the gradient directions.
|
DW_Scheme |
flipY()
Negates the Y component of the gradient directions.
|
DW_Scheme |
flipZ()
Negates the Z component of the gradient directions.
|
double |
getB_Value(int i)
Gets the b-value for measurement i.
|
DW_Scheme |
getSubsetScheme(int[] indices)
Gets a scheme composed of a subset of the measurements.
|
DW_Scheme |
gradOrder(int[] order)
Re-orders the components of the gradient vectors.
|
java.lang.String |
toString()
Returns the String representation of this object.
|
geoMeanZeroMeas, getB_Matrix, getG_Dir, getNonZeroB_Values, getNonZeroG_Dirs, normalizeData, normalizeData, normalizeData, normalizeGradDirs, nullScheme, numMeasurements, numZeroMeasurements, readScheme, zero
public static final java.lang.String VERSION
public B_VectorScheme(double[][] gradDir, double[] bVal)
gradDir
- gradient directions, one per measurement. Should be zero
for b=0 measurements.bVal
- b-values for each measurement.public double getB_Value(int i)
DW_Scheme
getB_Value
in class DW_Scheme
public DW_Scheme flipX()
public DW_Scheme flipY()
public DW_Scheme flipZ()
public DW_Scheme getSubsetScheme(int[] indices)
getSubsetScheme
in class DW_Scheme
indices
- integer indices of the measurements to include in the subset.public DW_Scheme gradOrder(int[] order)
gradOrder
in class DW_Scheme
order
- the new order of the gradients, where x=0, y=1, z=2. The original order is
[0 1 2], the new order may be any combination of x,y,z. Convenience variables grad___ are
provided by the DW_Scheme
class.gradXYZ and related variables.
public static B_VectorScheme elecPointSetScheme(int M, int N, double b)
M
- The number of zero measurements. These will be first in the scheme.N
- The number of non-zero measurements. The gradient directoins are taken
from the electrostatically optimized point sets stored in PointSets/.b
- the b-value.public java.lang.String toString()
toString
in class java.lang.Object