|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthhreco.fragmentation.FitData
A data structure storing a set of bases that represents a particular fragmentation of a symbol.
Constructor Summary | |
FitData(Basis[] bases,
int[] strokeIndices,
int nstrokes)
Each basis correspond to a stroke index. |
Method Summary | |
Basis |
getBasis(int i)
Return the basis at the specified index. |
int |
getBasisCount()
Return the number of bases in this fitting. |
int[] |
getBreakpointsOnStroke(int i)
Return the breakpoints on the specified stroke (by stroke index). |
Basis[] |
getFitsOnStroke(int i)
Return the bases on the specified stroke. |
int |
getNumStrokes()
Return the number of strokes of the original shape that this fitting approximates. |
int |
getStrokeIndex(int i)
Return the stroke index that the basis at the specified index corresponds to. |
java.lang.String |
getTemplate()
Return the template of this fit. |
double |
getTotalFitError()
Return the sum of the fit errors from all bases. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FitData(Basis[] bases, int[] strokeIndices, int nstrokes)
Method Detail |
public int getBasisCount()
public Basis getBasis(int i)
public int getStrokeIndex(int i)
public double getTotalFitError()
public java.lang.String getTemplate()
public int getNumStrokes()
public int[] getBreakpointsOnStroke(int i)
public Basis[] getFitsOnStroke(int i)
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |