Package

io.radanalytics.silex.feature

indexfunction

Permalink

package indexfunction

Provides IndexFunction and InvertibleIndexFunction, specialized subclasses of Scala functions Int => V that map integers over an interval to some value type, and which may be concatenated with monoidal operator ++, defined as follows:

(f1 ++ f2)(j) = if (j < f1.width) f1(j) else f2(j - f1.width)
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. indexfunction
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract class IndexFunction[V] extends PartialFunction[Int, V] with Serializable

    Permalink

    An index function is a (partial) function from some subset of collection indices to some values, and which can be concatenated with other such functions such that they now cover an expanded index range, and the "right" side function has had its domain shifted.

    An index function is a (partial) function from some subset of collection indices to some values, and which can be concatenated with other such functions such that they now cover an expanded index range, and the "right" side function has had its domain shifted. An index function is defined on an index interval with a particular width, and its domain is some subset of that interval.

    V

    The type of value returned by this function.

  2. abstract class InverseIndexFunction[V] extends PartialFunction[V, Int] with Serializable

    Permalink

    The inverse of an InvertibleIndexFunction.

    The inverse of an InvertibleIndexFunction.

    V

    The domain type of this function. Also the range of the parent InvertibleIndexFunction.

  3. abstract class InvertibleIndexFunction[V] extends IndexFunction[V]

    Permalink

    An IndexFunction that is also invertible (and so 1-1).

    An IndexFunction that is also invertible (and so 1-1).

    V

    The range value type of this function.

Value Members

  1. object IndexFunction extends Serializable

    Permalink

    Factory methods for generating index functions

  2. object InvertibleIndexFunction extends Serializable

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped