public class SLCSVLogging
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SLCSVLogging.SortByChannel
Sort an ArrayList
|
Modifier and Type | Field and Description |
---|---|
static int |
DETECTION_MATCH_RESULT_SAVE |
static int |
LOC_RESULT_SAVE |
Constructor and Description |
---|
SLCSVLogging() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
addFilenameTag(java.lang.String filename,
java.lang.String tag,
java.lang.String filetype)
Add a tag to a filename.
|
static java.lang.String |
createDetectionMatchString(SLResult locResult)
Create a string which references which detection were used to create the localisation result.
|
static java.lang.String |
createLocResultString(SLResult locResult)
Create a string in .csv format containing data from a localisation result.
|
static java.lang.String |
getColumnResultString() |
static java.lang.String |
getMatchColumnResultString() |
static void |
saveCSVMatchResult(SLResult locResult,
java.io.FileWriter fwMatch) |
static void |
saveCSVResult(SLResult locResult,
java.io.FileWriter fwLoc) |
static void |
saveCSVResultToFile(java.lang.String filename,
SLResult locResult,
int saveType)
Save localisation to a csv file.
|
public static final int LOC_RESULT_SAVE
public static final int DETECTION_MATCH_RESULT_SAVE
public static java.lang.String createLocResultString(SLResult locResult)
locResult
- - localisation result.public static java.lang.String createDetectionMatchString(SLResult locResult)
locResult
- - localisation resultpublic static java.lang.String getColumnResultString()
public static java.lang.String getMatchColumnResultString()
public static void saveCSVResult(SLResult locResult, java.io.FileWriter fwLoc)
public static void saveCSVMatchResult(SLResult locResult, java.io.FileWriter fwMatch)
public static void saveCSVResultToFile(java.lang.String filename, SLResult locResult, int saveType)
saveType=LOC_RESULT_SAVE saves the loclaisation result, x,y,z,lat,long etc.
saveType=DETECTION_MATCH_RESULT_SAVE saves the detection match information for the localisation, i.e. the detection that were used for the loclaisation. Detections are mapped by stating the binary file name and position within that binary file for each detection.
filename
- - filename to save to.locResult
- - localisation result to savesaveType
- - type of save to perform.public static java.lang.String addFilenameTag(java.lang.String filename, java.lang.String tag, java.lang.String filetype)
filename-
- the filename to add a tag totag-
- the tag to add.filetype-
- filetype, e.g.".csv"