Packages

  • package root
    Definition Classes
    root
  • package myscala
    Definition Classes
    root
  • package math
    Definition Classes
    myscala
  • package stats

    Statistical functions

    Statistical functions

    • quantile computation

    Overview

    The main functions in this package are used as follows

    import scala.util.Random
    
    // Computation of quantiles example
    val computeQuantilesEvery10 = computeQuantiles(Seq(10,20,30,40,50,60,70,80,90))_ // partial evaluation (currying)
    val q = computeQuantilesEvery10(Seq.fill(123)(Random.nextDouble))
    
    // Statistics example
    val data = Vector(1,2,3,4,5,6,7,8,9,10)s
    data.statistics // thanks to the implicit class
    Definition Classes
    math
  • package bootstrap
    Definition Classes
    stats
  • Bootstrap

package bootstrap

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

Type Members

  1. case class Bootstrap[T](MSE: Double, parameter: Double, parameterFunction: (Seq[T]) => Double)(implicit evidence$1: Numeric[T]) extends Product with Serializable

    Container for the results of a bootstrap.

    Container for the results of a bootstrap. The function is also stored so it is easier to find what parameter has been computed.

    T

    type of the data

    MSE

    mean square error of the parameter

    parameter

    the value of the parameter on the data

    parameterFunction

    function used to compute the statistic

Value Members

  1. def bootstrapMSE[T](data: Seq[T], parameterFunction: (Seq[T]) => Double, r: Int = 100)(implicit arg0: Numeric[T]): Bootstrap[T]

    Performs a bootstrap on the data.

    Performs a bootstrap on the data. The paramater to compute is passed as an argument. The number of permutations to compute is also a parameter with a default value set to 100.

    T

    type of the data

    data

    Sequence on which to perform the bootstrap

    parameterFunction

    the parameter to compute on the data

    r

    the number of permutations to compute, set to 100 by default

    returns

    mean square error MSE

Inherited from AnyRef

Inherited from Any

Ungrouped