|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mavis.ComponentCalculation
public final class ComponentCalculation
This class is used to calculate the properties of magnetic components.
Nested Class Summary | |
---|---|
static class |
ComponentCalculation.Axis
|
Constructor Summary | |
---|---|
private |
ComponentCalculation()
|
Method Summary | |
---|---|
private static double[] |
calculate(java.util.Vector osteps)
Private method for calculating values needed in declination and inclination calculations. |
static double |
calculateAoE(java.util.Vector steps)
Returns angle of error (Maximum Angular Deviation) of component. |
static double |
calculateAvgIntensity(java.util.Vector steps)
Returns average intensity of steps included in the component. |
private static javax.vecmath.Vector3d |
calculateCenterOfMass(java.util.Vector osteps)
Private method for calculating the center point (average) of the steps' magnetic vectors. |
static double |
calculateDeclination(java.util.Vector steps)
Returns component declination. |
static javax.vecmath.Vector3d |
calculateEnd(java.util.Vector steps)
Returns the 3D end point for drawing a line of the magnetic component. |
static javax.vecmath.Vector2d |
calculateEnd2D(java.util.Vector steps,
ComponentCalculation.Axis viewedFromAxis)
Returns the 2D end point for drawing a line of the magnetic component. |
static double |
calculateInclination(java.util.Vector steps)
Returns component inclination. |
static double |
calculateLength(java.util.Vector steps)
Calculates the 3D start and end point of the component, then returns the length of the interconnecting line. |
static double |
calculateMaxIntensity(java.util.Vector steps)
Returns maximum measurement amplitude of assigned steps. |
static double |
calculateMinIntensity(java.util.Vector steps)
Returns minimum measurement amplitude of assigned steps. |
static double |
calculatePoleLat(java.util.Vector steps,
Project project)
Returns ancient pole latitude. |
static double |
calculatePoleLong(java.util.Vector steps,
Project project)
Returns ancient pole longitude. |
static javax.vecmath.Vector3d |
calculateStart(java.util.Vector steps)
Returns the 3D starting point for drawing a line of the magnetic component. |
static javax.vecmath.Vector2d |
calculateStart2D(java.util.Vector steps,
ComponentCalculation.Axis viewedFromAxis)
Returns the 2D starting point for drawing a line of the magnetic component. |
static boolean |
containsOrigo(java.util.Vector steps)
Returns true if the steps contain an origo step at either the start or end. |
private static javax.vecmath.Vector3d |
getLineProjectionEndpoint(java.util.Vector osteps,
boolean startNotEnd)
Does some vector maths to project Zplot-normalised measurement step values onto the 3D component vector, then returns either start or end point. |
private static javax.vecmath.Vector2d |
getLineProjectionEndpoint2D(java.util.Vector osteps,
boolean startNotEnd,
ComponentCalculation.Axis viewedFromAxis)
Does some vector maths to project Zplot-normalised measurement step values onto the component vector, as viewed from the specified axis, and then returns the 2D start or end point. |
static java.util.Vector |
getStepsWithoutOrigo(java.util.Vector steps)
Returns true if the steps contain an origo step at either the start or end. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
private ComponentCalculation()
Method Detail |
---|
public static double calculateMaxIntensity(java.util.Vector steps)
steps
- component steps
public static double calculateMinIntensity(java.util.Vector steps)
steps
- component steps
public static double calculateAvgIntensity(java.util.Vector steps)
steps
- component steps
private static javax.vecmath.Vector3d calculateCenterOfMass(java.util.Vector osteps)
osteps
- component steps
private static double[] calculate(java.util.Vector osteps)
osteps
- component steps
public static double calculateDeclination(java.util.Vector steps)
steps
- component steps
public static double calculateInclination(java.util.Vector steps)
steps
- component steps
public static double calculateAoE(java.util.Vector steps)
steps
- component steps
public static double calculatePoleLat(java.util.Vector steps, Project project)
steps
- component stepsproject
- the project
public static double calculatePoleLong(java.util.Vector steps, Project project)
steps
- component stepsproject
- the project
public static javax.vecmath.Vector3d calculateStart(java.util.Vector steps)
steps
-
public static javax.vecmath.Vector3d calculateEnd(java.util.Vector steps)
steps
-
private static javax.vecmath.Vector3d getLineProjectionEndpoint(java.util.Vector osteps, boolean startNotEnd)
osteps
- the steps, startNotEnd set to true if
starting point should be returned
public static javax.vecmath.Vector2d calculateStart2D(java.util.Vector steps, ComponentCalculation.Axis viewedFromAxis)
steps
- the measurement steps
viewedFromAxis e.g. Axis.X, direction of view
public static javax.vecmath.Vector2d calculateEnd2D(java.util.Vector steps, ComponentCalculation.Axis viewedFromAxis)
steps
- the measurement steps
viewedFromAxis e.g. Axis.X, direction of view
private static javax.vecmath.Vector2d getLineProjectionEndpoint2D(java.util.Vector osteps, boolean startNotEnd, ComponentCalculation.Axis viewedFromAxis)
osteps
- the steps, startNotEnd set to true if
starting point should be returned
public static double calculateLength(java.util.Vector steps)
steps
-
public static boolean containsOrigo(java.util.Vector steps)
steps
-
public static java.util.Vector getStepsWithoutOrigo(java.util.Vector steps)
steps
- MeasurementStep steps in a vector
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |