de.unihalle.informatik.MiToBo.apps.singleCellTracking2D
Class ReportGenerator

java.lang.Object
  extended by de.unihalle.informatik.MiToBo.apps.singleCellTracking2D.ReportGenerator
Direct Known Subclasses:
IntensityAnalyzer, ShapeAnalyzer, TrackAnalyzer

public abstract class ReportGenerator
extends Object

Author:
glass

Field Summary
protected  int bgLabel
           
protected  double deltaT
           
protected  double deltaX
           
protected  double deltaY
           
protected  Vector<Integer> exclude
           
protected  int minTrackLength
           
protected  String naString
           
protected  NumberFormat nf
           
protected  String unitAngle
           
protected  String unitT
           
protected  String unitXY
           
 
Constructor Summary
ReportGenerator()
           
 
Method Summary
protected  double getAverageMean(Hashtable<Integer,Vector<Double>> meanValues)
           
protected  double getAverageStdDev(Hashtable<Integer,Vector<Double>> meanValues)
           
protected  String getExcluded()
           
protected  Hashtable<Integer,Vector<Double>> getObjectsMeans(Hashtable<Integer,Vector<Double>> values)
           
protected  Hashtable<Integer,Vector<Double>> getObjectsStdDevs(Hashtable<Integer,Vector<Double>> values)
           
protected  String getSettings()
           
protected  String hashtableToString(Hashtable<Integer,Vector<Double>> table, String caption)
           
protected  String hashtableToString(Hashtable<Integer,Vector<Double>> table, String caption, Hashtable<Integer,Integer> offsets)
           
abstract  String makeReport()
           
protected  String numberToString(double num)
           
protected  String pointHashtableToString(Hashtable<Integer,Vector<Point2D.Double>> table, String caption)
           
protected  String pointHashtableToStringX(Hashtable<Integer,Vector<Point2D.Double>> table, String caption)
           
protected  String pointHashtableToStringY(Hashtable<Integer,Vector<Point2D.Double>> table, String caption)
           
protected  StringBuffer pointVectorToString(Vector<Point2D.Double> values)
           
protected  StringBuffer pointVectorToStringX(Vector<Point2D.Double> values)
           
protected  StringBuffer pointVectorToStringY(Vector<Point2D.Double> values)
           
 void setDeltaT(double dt)
          set the time between two frames
 void setDeltaX(double dx)
          set pixel length in x-direction
 void setDeltaY(double dy)
          set pixel length in y-direction
 void setExcluded(Vector<Integer> exclude)
           
 void setMinTrackLength(int minTrackLength)
          set minimum track length
 void setUnitAngle(String unitAngle)
          set unit of angles
 void setUnitT(String unitT)
          set unit of time
 void setUnitXY(String unitXY)
          set unit of space
protected  Hashtable<Integer,Vector<Double>> trim(Hashtable<Integer,Vector<Double>> values, int minLength)
           
protected  StringBuffer vectorToString(int offset, Vector<Double> values)
           
protected  StringBuffer vectorToString(Vector<Double> values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bgLabel

protected int bgLabel

minTrackLength

protected int minTrackLength

deltaT

protected double deltaT

deltaX

protected double deltaX

deltaY

protected double deltaY

unitT

protected String unitT

unitXY

protected String unitXY

unitAngle

protected String unitAngle

nf

protected NumberFormat nf

naString

protected String naString

exclude

protected Vector<Integer> exclude
Constructor Detail

ReportGenerator

public ReportGenerator()
Method Detail

makeReport

public abstract String makeReport()
Returns:
report

getObjectsMeans

protected Hashtable<Integer,Vector<Double>> getObjectsMeans(Hashtable<Integer,Vector<Double>> values)
Parameters:
values - hash table containing object id-value list pairs
Returns:
means of the values for the distinct objects

getObjectsStdDevs

protected Hashtable<Integer,Vector<Double>> getObjectsStdDevs(Hashtable<Integer,Vector<Double>> values)
Parameters:
values - hash table containing object id-value list pairs
Returns:
standard deviations of the values for the distinct objects

trim

protected Hashtable<Integer,Vector<Double>> trim(Hashtable<Integer,Vector<Double>> values,
                                                 int minLength)
Parameters:
values - hash table containing object id-value list pairs
minLength - minimum length a track must have to be kept
Returns:
trimmed hash table containing only those id-value lists that have at least minTrackLength entries

getAverageMean

protected double getAverageMean(Hashtable<Integer,Vector<Double>> meanValues)
Parameters:
meanValues -
Returns:
average of the mean values

getAverageStdDev

protected double getAverageStdDev(Hashtable<Integer,Vector<Double>> meanValues)
Parameters:
meanValues -
Returns:
average of the standard deviations

hashtableToString

protected String hashtableToString(Hashtable<Integer,Vector<Double>> table,
                                   String caption)
Parameters:
table -
caption - heading for the data
Returns:
string representation of the input hash table

hashtableToString

protected String hashtableToString(Hashtable<Integer,Vector<Double>> table,
                                   String caption,
                                   Hashtable<Integer,Integer> offsets)
Parameters:
table - data to print
caption - heading for the data
offsets - number of time points where no data are available for the respective objects
Returns:
string representation of the input hash table

pointHashtableToString

protected String pointHashtableToString(Hashtable<Integer,Vector<Point2D.Double>> table,
                                        String caption)
Parameters:
table -
caption - heading for the data
Returns:
string representation of the input hash table

pointHashtableToStringX

protected String pointHashtableToStringX(Hashtable<Integer,Vector<Point2D.Double>> table,
                                         String caption)
Parameters:
table -
caption - heading for the data
Returns:
string representation of the input hash table

pointHashtableToStringY

protected String pointHashtableToStringY(Hashtable<Integer,Vector<Point2D.Double>> table,
                                         String caption)
Parameters:
table -
caption - heading for the data
Returns:
string representation of the input hash table

vectorToString

protected StringBuffer vectorToString(Vector<Double> values)
Parameters:
values -
Returns:
string representation of the input vector

vectorToString

protected StringBuffer vectorToString(int offset,
                                      Vector<Double> values)
Parameters:
offset -
values -
Returns:
string representation of the input vector

pointVectorToString

protected StringBuffer pointVectorToString(Vector<Point2D.Double> values)
Parameters:
values -
Returns:
string representation of the input vector

pointVectorToStringX

protected StringBuffer pointVectorToStringX(Vector<Point2D.Double> values)
Parameters:
values -
Returns:
string representation of the x-coordinates of the input vector

pointVectorToStringY

protected StringBuffer pointVectorToStringY(Vector<Point2D.Double> values)
Parameters:
values -
Returns:
string representation of the y-coordinates of the input vector

numberToString

protected String numberToString(double num)
Parameters:
num - input number
Returns:
formatted String representation of the input number

getSettings

protected String getSettings()
Returns:
String containing information about parameter settings used

getExcluded

protected String getExcluded()

setDeltaT

public void setDeltaT(double dt)
set the time between two frames

Parameters:
dt -

setDeltaX

public void setDeltaX(double dx)
set pixel length in x-direction

Parameters:
dx -

setDeltaY

public void setDeltaY(double dy)
set pixel length in y-direction

Parameters:
dy -

setUnitT

public void setUnitT(String unitT)
set unit of time

Parameters:
unitT -

setUnitXY

public void setUnitXY(String unitXY)
set unit of space

Parameters:
unitXY -

setUnitAngle

public void setUnitAngle(String unitAngle)
set unit of angles

Parameters:
unitAngle -

setMinTrackLength

public void setMinTrackLength(int minTrackLength)
set minimum track length

Parameters:
minTrackLength -

setExcluded

public void setExcluded(Vector<Integer> exclude)


Copyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.