public class GradientWaveform_Scheme extends DW_Scheme implements SimulableScheme
Modifier and Type | Method and Description |
---|---|
DW_Scheme |
flipX()
returns a new copy of the current scheme
with gradients flipped in the x-direction
|
DW_Scheme |
flipY()
returns a new copy of the current scheme
with gradients flipped in the y-direction
|
DW_Scheme |
flipZ()
returns a new copy of the current scheme
with gradients flipped in the z-direction
|
double |
getB_Value(int i)
calculates the b-factor of a general waveform using
Price's framework (Price, 1997).
|
double |
getDuration()
returns the duration necessary from the dynamics.
|
double[] |
getGradImpulse(int i,
double t,
double last)
calculates the net area under the gradient pulse.
|
DW_Scheme |
getSubsetScheme(int[] indices)
generates a new scheme from a specified subset of the acquisitions
in the current scheme.
|
DW_Scheme |
gradOrder(int[] order)
constructs a new set of waveforms in an order specified by
the given array of indices.
|
static void |
main(java.lang.String[] args)
testing entrypoint.
|
int |
numMeasurements()
overrides the number of measurements method
|
int |
numZeroMeasurements()
overrides the number of zeros measurements method to
use local count.
|
geoMeanZeroMeas, getB_Matrix, getG_Dir, getNonZeroB_Values, getNonZeroG_Dirs, normalizeData, normalizeData, normalizeData, normalizeGradDirs, nullScheme, readScheme, zero
public int numMeasurements()
numMeasurements
in class DW_Scheme
public int numZeroMeasurements()
numZeroMeasurements
in class DW_Scheme
public DW_Scheme flipX()
public DW_Scheme flipY()
public DW_Scheme flipZ()
public double getB_Value(int i)
getB_Value
in class DW_Scheme
the
- index of the direction we want the b-value inDW_Scheme.getB_Value(int)
public DW_Scheme getSubsetScheme(int[] indices)
getSubsetScheme
in class DW_Scheme
indeices
- the subset desiredpublic DW_Scheme gradOrder(int[] order)
gradOrder
in class DW_Scheme
order
- set of indices defining the new ordergradXYZ and related variables.
public double getDuration()
getDuration
in interface SimulableScheme
public double[] getGradImpulse(int i, double t, double last)
getGradImpulse
in interface SimulableScheme
i
- acquisition indext
- current time (end of simulation timestep)last
- previous time called (beginning of simulation timestep)imaging.SimulableScheme#getGradStrength(int, double, double)
public static void main(java.lang.String[] args)