public class MotionFieldReader
extends java.lang.Object
Constructor and Description |
---|
MotionFieldReader() |
Modifier and Type | Method and Description |
---|---|
double |
bilinearInterpolation(double diaphragmaMotion,
double positionZ) |
double[] |
getBilinearInterpolationDataMotion(double diaphragmaMotion) |
double[] |
getBilinearInterpolationDataPosition(double diaphragmaMotion) |
double |
getGlobalCompensationLinearMinMax(double diaMotion,
double diaPos,
double maxPos)
This method assumes a linear decrease from diaPos to maxPos
|
double |
getGlobalCompensationLinearScaling()
Method to compute slope.
|
double |
getGlobalCompensationLinearScalingSimple()
Method to compute simple slope, based on maximum measured diaphragm motion and the point furthest on top
|
double |
getInterpolatedGlobalCompensationLinearScaling(double diaMot) |
Function |
getLinearfittedFunction(int i) |
double |
getMaxMotion() |
double[][] |
getMotion() |
double[][] |
getPosition() |
Function |
getRANSACfittedFunction(double[] po,
double[] mo) |
static void |
main(java.lang.String[] args) |
boolean |
readOut() |
public MotionFieldReader() throws java.lang.Exception
java.lang.Exception
public boolean readOut() throws java.io.IOException
java.io.IOException
public double[][] getPosition()
public double[][] getMotion()
public double getMaxMotion()
public Function getRANSACfittedFunction(double[] po, double[] mo)
public Function getLinearfittedFunction(int i)
public double getGlobalCompensationLinearScaling()
public double getGlobalCompensationLinearScalingSimple()
public double getGlobalCompensationLinearMinMax(double diaMotion, double diaPos, double maxPos)
diaMotion
- diaPos
- maxPos
- public double[] getBilinearInterpolationDataMotion(double diaphragmaMotion)
public double[] getBilinearInterpolationDataPosition(double diaphragmaMotion)
public double bilinearInterpolation(double diaphragmaMotion, double positionZ)
public double getInterpolatedGlobalCompensationLinearScaling(double diaMot)
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception