|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvec_math.VectorG
vec_math.LineVector
public class LineVector
A class that converts a string consiting of individual tokens into a VectorG of doubles. Different delimiter chars can be specified.
StringTool,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class vec_math.VectorG |
|---|
VectorG.CloneTest, VectorG.EuclidianMetric, VectorG.LengthComparator, VectorG.Metric |
| Field Summary | |
|---|---|
private static DecimalFormat |
DEFFORMAT
The default number format to use in converting the vector in a string. |
private static NumberFormat |
format
The number format to use. |
| Fields inherited from class vec_math.VectorG |
|---|
a |
| Constructor Summary | |
|---|---|
|
LineVector(String line)
Converts a line into a vector of doubles. |
|
LineVector(String line,
String delim)
Converts a line into a vector of doubles using the specified delimiters. |
protected |
LineVector(StringTokenizer breakup)
Uses the string tokenizer to derive a double vector. |
| Method Summary | |
|---|---|
static void |
setFormat(NumberFormat use)
Sets the decimal number formatter to use on string output. |
String |
toString()
The string representation of a line vector. |
static String |
toString(VectorG n)
The string representation of a line vector. |
| Methods inherited from class vec_math.VectorG |
|---|
add, clone, dimension, direct, directDivide, directMultiply, dot, doubleParse, equalData, equals, fillFrom, fillFrom, fromDoubles, fromString, get, getAsArray, getLength, hashCode, match, match, multiply, parse, search, searchMinMax, set, sort, sortToLength, subtract |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final DecimalFormat DEFFORMAT
private static NumberFormat format
DEFFORMAT.
| Constructor Detail |
|---|
public LineVector(String line)
line - The tokenizable string.
public LineVector(String line,
String delim)
line - The tokenizable string.delim - The delimiters to use, see StringTool.protected LineVector(StringTokenizer breakup)
| Method Detail |
|---|
public static void setFormat(NumberFormat use)
public String toString()
toString in class VectorGpublic static String toString(VectorG n)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||