Packages

  • package root
    Definition Classes
    root
  • package myscala
    Definition Classes
    root
  • package input

    The main usage of the input library is to read the printed JSON files to test whether the output format is correct.

    The main usage of the input library is to read the printed JSON files to test whether the output format is correct. Nevertheless, they can still be used to read JSON files in a specific application.

  • package math
  • package output

    Provides extensions for writing common scala types to text files.

    Provides extensions for writing common scala types to text files. Two formats are used: CSV and JSON. Although CSV is simpler, it can be used for writing data to be read by TIKZ (latex). JSON is more flexible and is useful when different models or analyses must share data.

    Overview

    The implicit functions are designed to be used like this:

    val v: Vector[Double] = Vector(1,2,3,4,5)
    v.writetoCSV("myVectorTestCSV.csv")
    v.writeToJSON("travel_times", "myVectortestJSON.json")
    
    val m: Map[String,Vector[Double]] = Map("lausanne" -> Vector(1.1,2.0,3.7,4.3), "basel" -> Vector(9.0, 3.55, 3.2))
    m.writeToCSV("myMapTestCSV.csv")
    m.writeToJSON("train_stations", "myMaptestJSON.json")
    
    val ab: scala.collection.mustable.ArrayBuffer[(Int. Double)] = scala.collectection.mutable.ArrayBuffer((1,2.156),(2,3.1415),(3,42.23))
    ab.writeToCSV("myABTestCSV.csv")
p

myscala

package myscala

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. myscala
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def timeBlock[R](block: ⇒ R): R

    Prints the time taken to execute a block of code.

    Prints the time taken to execute a block of code. This function is used as

    val g = timeBlock {
      buildGraph(conn3.head, conn3.tail, List())
    R

    return type of that code

    block

    code to evaluate

    returns

    returns the same object as the original block would of done

Inherited from AnyRef

Inherited from Any

Ungrouped