public class ReaderHelper
extends java.lang.Object
| Constructor and Description |
|---|
ReaderHelper() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.HashMap<java.lang.String,java.lang.Double> |
createMap(double[] data,
int nrAtt,
java.lang.String theFileName) |
static double[] |
extractSingleParticipantData(int partNr,
int attributeNr,
double[][] inputMatrix)
extracts a sinlge participant from a data structure with all participants
|
static java.util.ArrayList<java.lang.Double> |
getRates(java.lang.String fileName) |
static double[][] |
readAllData(java.lang.String fileName)
reads and csv file containing all participant data.
|
public static double[][] readAllData(java.lang.String fileName)
throws java.io.IOException
java.io.IOExceptionpublic static double[] extractSingleParticipantData(int partNr,
int attributeNr,
double[][] inputMatrix)
partNr - running participant idattributeNr - nr of attributesinputMatrix - double [][] with all participants in matrix formpublic static java.util.HashMap<java.lang.String,java.lang.Double> createMap(double[] data,
int nrAtt,
java.lang.String theFileName)
throws java.io.IOException
data - an array for the data of one ParticipantnrAtt - the number of attributes per participantjava.io.IOExceptionpublic static java.util.ArrayList<java.lang.Double> getRates(java.lang.String fileName)
throws java.io.IOException
java.io.IOException