corina.cross
Class Weiserjahre

java.lang.Object
  |
  +--corina.cross.Cross
        |
        +--corina.cross.Weiserjahre
All Implemented Interfaces:
Runnable

public class Weiserjahre
extends Cross


Fields inherited from class corina.cross.Cross
data, fixed, highScores, moving, msg
 
Constructor Summary
Weiserjahre(Sample fixed, Sample moving)
           
 
Method Summary
 double compute(int offset_fixed, int offset_moving)
          Compute an individual score, starting at the given offsets into the fixed and moving samples.
 String getFormat()
          Return a format string for this cross to be used with DecimalFormat.
 double getMinimumSignificant()
           
 String getName()
          Return a human-readable name for the crossdate.
 boolean isSignificant(double score, int overlap)
           
 
Methods inherited from class corina.cross.Cross
getFixed, getMinimumOverlap, getMoving, isFinished, preamble, run, single, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Weiserjahre

public Weiserjahre(Sample fixed,
                   Sample moving)
Method Detail

getFormat

public String getFormat()
Description copied from class: Cross
Return a format string for this cross to be used with DecimalFormat.
Overrides:
getFormat in class Cross
Following copied from class: corina.cross.Cross
Returns:
a format string for this cross

isSignificant

public boolean isSignificant(double score,
                             int overlap)
Overrides:
isSignificant in class Cross

getMinimumSignificant

public double getMinimumSignificant()
Overrides:
getMinimumSignificant in class Cross

getName

public String getName()
Description copied from class: Cross
Return a human-readable name for the crossdate.
Overrides:
getName in class Cross
Following copied from class: corina.cross.Cross
Returns:
a user-readable name for this type of cross

compute

public double compute(int offset_fixed,
                      int offset_moving)
Description copied from class: Cross
Compute an individual score, starting at the given offsets into the fixed and moving samples. (One of the offsets will always be zero, so you never need to look backwards in the data.)
Overrides:
compute in class Cross
Following copied from class: corina.cross.Cross
Parameters:
offset_fixed - index of the fixed data to start at
offset_moving - index of the moving data to start at
Returns:
score at this position