uwcse.location.core
Class MeanLocationReport

java.lang.Object
  |
  +--uwcse.location.core.LocationReport
        |
        +--uwcse.location.core.StateLocationReport
              |
              +--uwcse.location.core.MeanLocationReport
Direct Known Subclasses:
ParticleLocationReport

public class MeanLocationReport
extends StateLocationReport

A mean location report contains the mean State and standard deviation of for an object.

Version:
$Revision: 1.3 $
Author:
Jeffrey Hightower

Constructor Summary
MeanLocationReport()
          Create a mean location report whith a null mean and standard deviation.
MeanLocationReport(MeanLocationReport report)
          Create a location report as a copy of the given one.
MeanLocationReport(State mean, State standardDeviation)
          Create a mean location report using the given mean and standard deviation.
MeanLocationReport(Tracker tracker, State mean, State standardDeviation)
          Create a mean location report using the given tracker, mean, and standard deviation.
 
Method Summary
 State getMean()
          Get the mean location.
 State getMostLikelyState()
          The mostlikely state of this report is just the mean state so this method simply returns the mean value.
 State getStandardDeviation()
          Get the standard deviation indicating the error in location.
 String toString()
          Return a string representation of this location report.
 
Methods inherited from class uwcse.location.core.StateLocationReport
getState
 
Methods inherited from class uwcse.location.core.LocationReport
getLastMeasurement, getTimestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MeanLocationReport

public MeanLocationReport()
Create a mean location report whith a null mean and standard deviation.


MeanLocationReport

public MeanLocationReport(State mean,
                          State standardDeviation)
Create a mean location report using the given mean and standard deviation.


MeanLocationReport

public MeanLocationReport(Tracker tracker,
                          State mean,
                          State standardDeviation)
Create a mean location report using the given tracker, mean, and standard deviation.


MeanLocationReport

public MeanLocationReport(MeanLocationReport report)
Create a location report as a copy of the given one.

Method Detail

getMostLikelyState

public State getMostLikelyState()
The mostlikely state of this report is just the mean state so this method simply returns the mean value.

Overrides:
getMostLikelyState in class StateLocationReport
See Also:
getMean()

getMean

public State getMean()
Get the mean location.


getStandardDeviation

public State getStandardDeviation()
Get the standard deviation indicating the error in location.


toString

public String toString()
Return a string representation of this location report.

Overrides:
toString in class LocationReport


This documentation is for the Location Stack v0.8. The latest distribution, the documentation, and the list of contributors to the Location Stack can always be found at http://portolano.cs.washington.edu/projects/location/

© Copyright 2004 University of Washington CSE