jmri.jmrix.rps
Class Ash2_1Algorithm

java.lang.Object
  extended by jmri.jmrix.rps.AbstractCalculator
      extended by jmri.jmrix.rps.Ash2_1Algorithm
All Implemented Interfaces:
Calculator

public class Ash2_1Algorithm
extends AbstractCalculator

Implementation of 2.1th 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.

Author:
Robert Ashenfelter Copyright (C) 2007, Bob Jacobsen Copyright (C) 2007

Field Summary
static int NMAX
           
static int SMAX
           
static int TMAX
           
static int TMIN
           
 
Constructor Summary
Ash2_1Algorithm(Point3d[] sensors, double vsound)
           
Ash2_1Algorithm(Point3d[] sensors, double vsound, int offset)
           
Ash2_1Algorithm(Point3d sensor1, Point3d sensor2, Point3d sensor3, double vsound)
           
Ash2_1Algorithm(Point3d sensor1, Point3d sensor2, Point3d sensor3, Point3d sensor4, double vsound)
           
 
Method Summary
 Measurement convert(Reading r)
           
 Measurement convert(Reading r, Measurement last)
          Seed the conversion using a last measurement
 Measurement convert(Reading r, Point3d guess)
          Seed the conversion using an estimated position
 
Methods inherited from class jmri.jmrix.rps.AbstractCalculator
prep
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TMAX

public static int TMAX

TMIN

public static int TMIN

SMAX

public static int SMAX

NMAX

public static int NMAX
Constructor Detail

Ash2_1Algorithm

public Ash2_1Algorithm(Point3d[] sensors,
                       double vsound,
                       int offset)

Ash2_1Algorithm

public Ash2_1Algorithm(Point3d[] sensors,
                       double vsound)

Ash2_1Algorithm

public Ash2_1Algorithm(Point3d sensor1,
                       Point3d sensor2,
                       Point3d sensor3,
                       double vsound)

Ash2_1Algorithm

public Ash2_1Algorithm(Point3d sensor1,
                       Point3d sensor2,
                       Point3d sensor3,
                       Point3d sensor4,
                       double vsound)
Method Detail

convert

public Measurement convert(Reading r)

convert

public Measurement convert(Reading r,
                           Point3d guess)
Seed the conversion using an estimated position


convert

public Measurement convert(Reading r,
                           Measurement last)
Seed the conversion using a last measurement



Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads