writeToFile

fun writeToFile(array: DoubleArray, fileName: String, df: DecimalFormat? = null): Path

Writes the data in the array to rows in the file, each row with one data point

Parameters

array

the array to write, must not be null

fileName

the name of the file, must not be null, file will appear in KSL.outDir


fun writeToFile(array: DoubleArray, pathToFile: Path, df: DecimalFormat? = null): Path
fun writeToFile(array: IntArray, pathToFile: Path)

Writes the data in the array to rows in the file, each row with one data point

Parameters

array

the array to write, must not be null

pathToFile

the path to the file, must not be null


fun writeToFile(array: Array<DoubleArray>, fileName: String, df: DecimalFormat? = null)
fun writeToFile(array: Array<IntArray>, fileName: String)

Writes the data in the array to rows in the file, each element in a row is separated by a comma

Parameters

array

the array to write, must not be null

fileName

the name of the file, must not be null, file will appear in JSL.getInstance().getOutDir()


fun writeToFile(array: Array<DoubleArray>, pathToFile: Path, df: DecimalFormat? = null)
fun writeToFile(array: Array<IntArray>, pathToFile: Path)

Writes the data in the array to rows in the file, each element in a row is separated by a comma

Parameters

array

the array to write, must not be null

pathToFile

the path to the file, must not be null


fun writeToFile(array: IntArray, fileName: String)

Writes the data in the array to rows in the file, each row with one data point

Parameters

array

the array to write, must not be null

fileName

the name of the file, must not be null, file will appear in JSL.getInstance().getOutDir()