Object

infcalcs

IOFile

Related Doc: package infcalcs

Permalink

object IOFile

This object contains methods for writing and reading various types of data to and from files.

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

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def calculatedToFile(cs: Vector[Calculation], f: String): Unit

    Permalink

    Writes Calculation data to file in the event that the estimator is not used in favor of naive calculation

    Writes Calculation data to file in the event that the estimator is not used in favor of naive calculation

    cs

    Calculation instances

    f

    file name

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def delimInfoToFile(dPair: Pair[NTuple[Tree[Bin]]], kPair: Pair[Map[NTuple[Int], Int]], s: String): Unit

    Permalink

    Writes relevant delimiter information to file

    Writes relevant delimiter information to file

    dPair

    Pair of delimiters as NTuple of type Tree

    kPair

    Pair of mappings from n-dim data indices to 1-dim indices

    s

    file name

  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def estimatesToFileBS(d: Vector[EstTupleBS], f: String)(implicit calcConfig: CalcConfig): Unit

    Permalink

    Alternate to estimatesToFileMult for bootstrapping data

  11. def estimatesToFileMult(d: Vector[EstTuple], f: String)(implicit calcConfig: CalcConfig): Unit

    Permalink

    Writes list of mutual information estimates to file.

    Writes list of mutual information estimates to file.

    It takes the mutual information data as a list of tuples; each tuple contains: - a pair of integers specifying a pair of row, column bin sizes; - A list of tuples, each containing an MI estimate (intercept from the linear regression) and its 95% confidence interval.

    d

    List of (bin sizes, list of (MI estimate, confidence interval), optional weight)

    f

    Name of the file to write.

  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. def importData(f: String): Vector[Vector[Double]]

    Permalink

    Loads a 2D data table from a file as a matrix of Doubles.

    Loads a 2D data table from a file as a matrix of Doubles.

    Each line of the file is expected to contain a whitespace-separated list of numbers that can be cast as Doubles. Used as a helper function for loading dose-response datasets (by loadList).

    f

    Name of file to load.

    returns

    The data, as a matrix of doubles.

  16. def importParameters(f: Option[String]): List[Pair[String]]

    Permalink

    Loads parameters from a file, or returns an empty list if no file is given.

    Loads parameters from a file, or returns an empty list if no file is given.

    The parameters should be contained in a text file with each name/value pair on its own line, separated by a tab character.

    f

    Name of file to load, or None.

    returns

    List of tuples containing parameter name/value pairs.

  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def loadList(f: String)(implicit calcConfig: CalcConfig): DRData

    Permalink

    Loads arbitrary numbers of columns into 2D vector

    Loads arbitrary numbers of columns into 2D vector

    Currently, the remainder of the program can only handle 4 columns or fewer correctly

    f

    Name of file to load.

    returns

    2D vector of data from file

  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. def optInfoToFile(c: Map[String, Pair[Double]], s: String): Unit

    Permalink

    Writes relevant estimate information to file

    Writes relevant estimate information to file

    c

    Map of value names and their estimate and error

    s

    file name

  23. def optInfoToFileBS(c: Map[String, (Double, Pair[Double])], s: String): Unit

    Permalink

    Alternate to optInfoToFile for bootstrapped data

  24. def pairToFile(l: DRData, f: String): Unit

    Permalink

    Writes data to a whitespace-separated file.

    Writes data to a whitespace-separated file.

    In the event of multiple signals or responses per data point, values are separated by single spaces and signal/response data is separated by tabs

    l

    The list of pairs to write.

    f

    Name of the file to write.

  25. def regDataToFile(d: (Seq[Double], Seq[Double]), f: String): Unit

    Permalink

    Writes mutual information regression data to a file.

    Writes mutual information regression data to a file.

    Can be useful for debugging. The tuple d given as an argument contains three entries: - the list of inverse sample sizes - the list of mutual information values

    d

    (inverse sample sizes, MI list)

    f

    Name of the file to write.

  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped