corina.index
Class Horizontal
java.lang.Object
|
+--corina.index.Index
|
+--corina.index.Horizontal
- All Implemented Interfaces:
- Graphable, Runnable, UndoableEdit
- public class Horizontal
- extends Index
Horizontal-line index type.
The absolute simplest index possible: everything becomes a
percentage of the mean. Of course, there's no reason to ever use
this index in practice, because crossdating normalizes datasets
first (T-score) or doesn't care about their magnitudes (trend).
There's also no real reason for this class to exist, because
it's merely a special case of the polynomial index, but it's a good
template for writing other algorithms because it's so simple.
- Version:
- $Id: Horizontal.java,v 1.3 2002/10/29 19:19:06 bitpoet Exp $
- Author:
- Ken Harris
Constructor Summary |
Horizontal(Sample s)
Constructs a new Horizontal index with the given sample. |
Methods inherited from class corina.index.Index |
addEdit, apply, canRedo, canUndo, die, getChi2, getData, getPresentationName, getR, getRedoPresentationName, getScale, getStart, getTarget, getUndoPresentationName, isSignificant, redo, replaceEdit, run, setProxy, toString, unapply, undo |
Horizontal
public Horizontal(Sample s)
- Constructs a new Horizontal index with the given sample.
- Parameters:
s
- sample to index
index
public void index()
- Run the index.
- Overrides:
index
in class Index
getName
public String getName()
- Return the name of this index.
- Overrides:
getName
in class Index
- Returns:
- the name of this index
getID
public int getID()
- Overrides:
getID
in class Index