Class InitialAlgorithm

  • All Implemented Interfaces:
    Calculator

    public class InitialAlgorithm
    extends java.lang.Object
    implements Calculator
    Implementation of 1st algorithm for reducing Readings.

    This algorithm was provided by Robert Ashenfelter based in part on the work of Ralph Bucher in his paper "Exact Solution for Three Dimensional Hyperbolic Positioning Algorithm and Synthesizable VHDL Model for Hardware Implementation".

    Neither Ashenfelter nor Bucher provide any guarantee as to the intellectual property status of this algorithm. Use it at your own risk.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int ngps  
      (package private) double r0  
      (package private) double ri  
      (package private) double rj  
      (package private) double rk  
      (package private) double rl  
      (package private) javax.vecmath.Point3d sensor1  
      (package private) javax.vecmath.Point3d sensor2  
      (package private) javax.vecmath.Point3d sensor3  
      (package private) javax.vecmath.Point3d sensor4  
      (package private) double vsound  
      (package private) double x
      The following is the original algorithm, as provided by Ash as a C routine
      (package private) double x0  
      (package private) double xi  
      (package private) double xj  
      (package private) double xk  
      (package private) double xl  
      (package private) double y
      The following is the original algorithm, as provided by Ash as a C routine
      (package private) double y0  
      (package private) double yi  
      (package private) double yj  
      (package private) double yk  
      (package private) double yl  
      (package private) double z
      The following is the original algorithm, as provided by Ash as a C routine
      (package private) double z0  
      (package private) double zi  
      (package private) double zj  
      (package private) double zk  
      (package private) double zl  
    • Constructor Summary

      Constructors 
      Constructor Description
      InitialAlgorithm​(javax.vecmath.Point3d[] sensors, double vsound)  
      InitialAlgorithm​(javax.vecmath.Point3d sensor1, javax.vecmath.Point3d sensor2, javax.vecmath.Point3d sensor3, double vsound)  
      InitialAlgorithm​(javax.vecmath.Point3d sensor1, javax.vecmath.Point3d sensor2, javax.vecmath.Point3d sensor3, javax.vecmath.Point3d sensor4, double vsound)  
    • Field Detail

      • sensor1

        javax.vecmath.Point3d sensor1
      • sensor2

        javax.vecmath.Point3d sensor2
      • sensor3

        javax.vecmath.Point3d sensor3
      • sensor4

        javax.vecmath.Point3d sensor4
      • x

        double x
        The following is the original algorithm, as provided by Ash as a C routine
      • y

        double y
        The following is the original algorithm, as provided by Ash as a C routine
      • z

        double z
        The following is the original algorithm, as provided by Ash as a C routine
      • x0

        double x0
      • y0

        double y0
      • z0

        double z0
      • r0

        double r0
      • xi

        double xi
      • yi

        double yi
      • zi

        double zi
      • xj

        double xj
      • yj

        double yj
      • zj

        double zj
      • xk

        double xk
      • yk

        double yk
      • zk

        double zk
      • xl

        double xl
      • yl

        double yl
      • zl

        double zl
      • ri

        double ri
      • rj

        double rj
      • rk

        double rk
      • rl

        double rl
    • Constructor Detail

      • InitialAlgorithm

        public InitialAlgorithm​(javax.vecmath.Point3d[] sensors,
                                double vsound)
      • InitialAlgorithm

        public InitialAlgorithm​(javax.vecmath.Point3d sensor1,
                                javax.vecmath.Point3d sensor2,
                                javax.vecmath.Point3d sensor3,
                                double vsound)
      • InitialAlgorithm

        public InitialAlgorithm​(javax.vecmath.Point3d sensor1,
                                javax.vecmath.Point3d sensor2,
                                javax.vecmath.Point3d sensor3,
                                javax.vecmath.Point3d sensor4,
                                double vsound)