|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mymedialite.io.VectorExtensions
public class VectorExtensions
Tools for vector-like data
Method Summary | |
---|---|
static IntList |
readIntVector(java.io.BufferedReader reader)
Read a collection of ints from a TextReader object. |
static DoubleList |
readVector(java.io.BufferedReader reader)
Read a List of doubles from a BufferedReader object |
static double[] |
readVectorArray(java.io.BufferedReader reader)
Read an array of doubles from a BufferedReader object |
static void |
writeVector(java.io.PrintWriter writer,
java.util.Collection<?> vector)
Write a Collection of doubles to a PrintWriter |
static void |
writeVectorArray(java.io.PrintWriter writer,
double[] vector)
Write an array of doubles to a PrintWriter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void writeVector(java.io.PrintWriter writer, java.util.Collection<?> vector)
writer
- a vector
- a collection of double valuespublic static void writeVectorArray(java.io.PrintWriter writer, double[] vector)
writer
- a vector
- a collection of double valuespublic static DoubleList readVector(java.io.BufferedReader reader) throws java.io.IOException
reader
- the java.io.IOException
public static double[] readVectorArray(java.io.BufferedReader reader) throws java.io.IOException
reader
- the java.io.IOException
public static IntList readIntVector(java.io.BufferedReader reader) throws java.io.IOException
reader
- the BufferedReader to read from
java.io.IOException
java.lang.NumberFormatException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |