Packages

  • package root
    Definition Classes
    root
  • package org
    Definition Classes
    root
  • package saddle

    Saddle is a Scala Data Library.

    Saddle

    Saddle is a Scala Data Library.

    Saddle provides array-backed, indexed one- and two-dimensional data structures.

    These data structures are specialized on JVM primitives. With them one can often avoid the overhead of boxing and unboxing.

    Basic operations also aim to be robust to missing values (NA's)

    The building blocks are intended to be easily composed.

    The foundational building blocks are:

    Inspiration for Saddle comes from many sources, including the R programming language, the pandas data analysis library for Python, and the Scala collections library.

    Definition Classes
    org
  • package array

    This package contains utilities for working with arrays that are specialized for numeric types.

    This package contains utilities for working with arrays that are specialized for numeric types.

    Definition Classes
    saddle
  • package csv
    Definition Classes
    saddle
  • package groupby
    Definition Classes
    saddle
  • package index
    Definition Classes
    saddle
  • package locator
    Definition Classes
    saddle
  • package mat
    Definition Classes
    saddle
  • package ops

    Provides type aliases for a few basic operations

    Provides type aliases for a few basic operations

    Definition Classes
    saddle
  • package scalar
    Definition Classes
    saddle
  • package util

    Additional utilities that need a home

    Additional utilities that need a home

    Definition Classes
    saddle
  • package vec

    Factory methods to generate Vec instances

    Factory methods to generate Vec instances

    Definition Classes
    saddle
  • VecDefault

package vec

Factory methods to generate Vec instances

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

Type Members

  1. class VecDefault[T] extends NumericOps[Vec[T]] with Vec[T]

Value Members

  1. def ones(sz: Int): Vec[Double]

    Generate a Vec[Double] containing a certain number of ones

    Generate a Vec[Double] containing a certain number of ones

    sz

    Number of elements of ones vec

  2. def rand(sz: Int): Vec[Double]

    Generate a uniform random Vec[Double] of a certain number of elements

    Generate a uniform random Vec[Double] of a certain number of elements

    sz

    Number of elements of random vector

  3. def randi(sz: Int): Vec[Int]

    Generate a uniform random Vec[Int] of a certain number of elements

    Generate a uniform random Vec[Int] of a certain number of elements

    sz

    Number of elements of random vector

  4. def randl(sz: Int): Vec[Long]

    Generate a uniform random Vec[Long] of a certain number of elements

    Generate a uniform random Vec[Long] of a certain number of elements

    sz

    Number of elements of random vector

  5. def randn(sz: Int): Vec[Double]

    Generate a gaussian(0, 1) random Vec[Double] of a certain number of elements

    Generate a gaussian(0, 1) random Vec[Double] of a certain number of elements

    sz

    Number of elements of random vector

  6. def randn2(sz: Int, mu: Double, sigma: Double): Vec[Double]

    Generate a gaussian(mu, sigma) random Vec[Double] of a certain number of elements

    Generate a gaussian(mu, sigma) random Vec[Double] of a certain number of elements

    sz

    Number of elements of random vector

    mu

    Mean of distribution

    sigma

    Stdev of distribution

  7. def randp(sz: Int): Vec[Double]

    Generate a uniform random positive Vec[Double] of a certain number of elements

    Generate a uniform random positive Vec[Double] of a certain number of elements

    sz

    Number of elements of random vector

  8. def randpi(sz: Int): Vec[Int]

    Generate a uniform random positive Vec[Int] of a certain number of elements

    Generate a uniform random positive Vec[Int] of a certain number of elements

    sz

    Number of elements of random vector

  9. def randpl(sz: Int): Vec[Long]

    Generate a uniform random positive Vec[Long] of a certain number of elements

    Generate a uniform random positive Vec[Long] of a certain number of elements

    sz

    Number of elements of random vector

  10. def range(from: Int, until: Int, step: Int = 1): Vec[Int]

    Generate a Vec[Int] containing the range of integers specified

    Generate a Vec[Int] containing the range of integers specified

    from

    Start of range

    until

    End of range, excluded from result

    step

    Stride of range

  11. def repeat[T](v: Array[T], n: Int)(implicit arg0: ST[T]): Array[T]

    Repeats a particular array some number of times

    Repeats a particular array some number of times

    T

    type of elements in array

    v

    array of values to repeat

    n

    number of repetitions

  12. def zeros(sz: Int): Vec[Double]

    Generate a Vec[Double] containing a certain number of zeros

    Generate a Vec[Double] containing a certain number of zeros

    sz

    Number of elements of zero vec

Inherited from AnyRef

Inherited from Any

Ungrouped