package orf

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type feature = int

A feature is accessed via its (integer) index.

type 'a t

'a t is the type of a feature vector with feature indexes of type int and values of type 'a.

val iter : (feature -> 'a -> unit) -> 'a t -> unit

Iterate on a feature vector.

val zero : unit -> 'a t

The zero feature vector.

val get : feature -> int t -> int

get feat vec returns the value associated to feat in the integer-valued vector vec.

val set : feature -> 'a -> 'a t -> unit

set feat val vec sets the feature at index feat to value val in vector vec.

OCaml

Innovation. Community. Security.