Uses of Class
FinchSensor

Uses of FinchSensor in <Unnamed>
 

Methods in <Unnamed> that return FinchSensor
static FinchSensor SensorDriver.median(java.util.List<FinchSensor> log)
          Return the sensor sample that is the median value of the key used to sort a set.
 

Methods in <Unnamed> that return types with arguments of type FinchSensor
static java.util.TreeMap<java.lang.Integer,java.util.ArrayList<FinchSensor>> SensorDriver.reKey(java.util.Map<java.lang.Long,FinchSensor> map)
          Given an existing map that is keyed by sample time (a Long) and stores FinchSensor values, generate a new map in which the same set of values are stored, but are keyed by the left light sensor value (an Integer).
 

Methods in <Unnamed> with parameters of type FinchSensor
 int AccelComparator.compare(FinchSensor obj1, FinchSensor obj2)
          Compare two FinchSensor objects: acceleration magnitude
 int LightComparator.compare(FinchSensor obj1, FinchSensor obj2)
          Compare two FinchSensor objects: light sensor
 int ZaccelComparator.compare(FinchSensor obj1, FinchSensor obj2)
          Compare two FinchSensor objects: Z acceleration
 int TemperatureComparator.compare(FinchSensor obj1, FinchSensor obj2)
          Compare two FinchSensor objects: temperature sensor
 int TimeComparator.compare(FinchSensor obj1, FinchSensor obj2)
          Compare two FinchSensor objects: sensor sample time
 double AccelComparator.doubleValue(FinchSensor obj)
           
 double LightComparator.doubleValue(FinchSensor obj)
           
abstract  double SensorComparator.doubleValue(FinchSensor obj)
          Return the value of obj that is specified by the instantiation of the child class.
 double ZaccelComparator.doubleValue(FinchSensor obj)
           
 double TemperatureComparator.doubleValue(FinchSensor obj)
           
 double TimeComparator.doubleValue(FinchSensor obj)
           
 

Method parameters in <Unnamed> with type arguments of type FinchSensor
static void SensorDriver.displayConditionalStats(java.util.ArrayList<FinchSensor> list)
          Given an ArrayList of FinchSensors, report the statistics for for both the Acceleration Magnitude and for the Z component of Acceleration
static void SensorDriver.displayStats(java.util.List<FinchSensor> log, SensorComparator comp)
          For the given sensor channel (as indicated by comp), display: The mean value of this sensor channel the entire sensor sample for the minimum, median and maximum channel values
static void SensorDriver.getSamples(finch.Finch myFinch, int num, int interval, java.util.Map<java.lang.Long,FinchSensor> map)
          Take a specified number of FinchSensor samples and place them into a map.
static double SensorDriver.mean(java.util.List<FinchSensor> log, SensorComparator comp)
          Compute the mean value of a some sensor value across a set of FinchSensors.
static FinchSensor SensorDriver.median(java.util.List<FinchSensor> log)
          Return the sensor sample that is the median value of the key used to sort a set.
static void SensorDriver.queryTest(java.util.ArrayList<FinchSensor> list, java.lang.Long[] keys)
          Given an ArrayList of FinchSensors and an array of sample times to query, measure the amount of time (in ms) that is required to query all of the keys.
static void SensorDriver.queryTest(java.util.Map<java.lang.Long,FinchSensor> map, java.lang.Long[] keys)
          Given a map and an array of keys, measure the amount of time (in ms) that is required to query all of the keys.
static java.util.TreeMap<java.lang.Integer,java.util.ArrayList<FinchSensor>> SensorDriver.reKey(java.util.Map<java.lang.Long,FinchSensor> map)
          Given an existing map that is keyed by sample time (a Long) and stores FinchSensor values, generate a new map in which the same set of values are stored, but are keyed by the left light sensor value (an Integer).