Package cnuphys.adaptiveSwim.test
Class AdaptiveResultDiff
java.lang.Object
cnuphys.adaptiveSwim.test.AdaptiveResultDiff
-
Field Summary
FieldsModifier and TypeFieldDescriptionUsed for debugging, to compare the difference between two swims -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
Get the signed difference in BDLdouble[]
getDiff()
Get the signed difference in the final state vectors 2 - 1double
double
double
Get the absolute difference between the final path lengths (2-1)double
Get the signed final difference in z, z2 - z1double
Get the signed final difference in theta, 2 - 1double
Get the signed difference between the final path lengths (2-1)double
Get the signed final difference in theta, 2 - 1double
Get the signed final difference in z, z2 - z1double
Get the signed final difference in z, z2 - z1double
Get the signed final difference in z, z2 - z1
-
Field Details
-
result1
Used for debugging, to compare the difference between two swims -
result2
-
-
Constructor Details
-
AdaptiveResultDiff
-
-
Method Details
-
getFinalSDiff
public double getFinalSDiff()Get the signed difference between the final path lengths (2-1)- Returns:
- the signed difference between the final path lengths
-
getFinalAbsSDiff
public double getFinalAbsSDiff()Get the absolute difference between the final path lengths (2-1)- Returns:
- the signed difference between the final path lengths
-
getDiff
public double[] getDiff()Get the signed difference in the final state vectors 2 - 1- Returns:
- the signed difference in the final state vectors
-
getFinalAbsPositionDiff
public double getFinalAbsPositionDiff() -
getFinalAbsMomentumDiff
public double getFinalAbsMomentumDiff() -
getFinalXDiff
public double getFinalXDiff()Get the signed final difference in z, z2 - z1- Returns:
- the signed final difference in z
-
getFinalYDiff
public double getFinalYDiff()Get the signed final difference in z, z2 - z1- Returns:
- the signed final difference in z
-
getFinalZDiff
public double getFinalZDiff()Get the signed final difference in z, z2 - z1- Returns:
- the signed final difference in z
-
getFinalAbsZDiff
public double getFinalAbsZDiff()Get the signed final difference in z, z2 - z1- Returns:
- the signed final difference in z
-
getFinalThetaDiff
public double getFinalThetaDiff()Get the signed final difference in theta, 2 - 1- Returns:
- the signed final difference in theta (degrees)
-
getFinalPhiDiff
public double getFinalPhiDiff()Get the signed final difference in theta, 2 - 1- Returns:
- the signed final difference in theta (degrees)
-
getBDLDiff
public double getBDLDiff()Get the signed difference in BDL- Returns:
- the signed difference in BDL
-