Class

com.twitter.algebird.ExpHist

CanonicalVector

Related Doc: package ExpHist

Permalink

final case class CanonicalVector(rep: Vector[Int]) extends AnyVal with Product with Serializable

Source
ExpHist.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, AnyVal, Any
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CanonicalVector
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyVal
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CanonicalVector(rep: Vector[Int])

    Permalink

Value Members

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

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

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

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

    Permalink
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  7. val rep: Vector[Int]

    Permalink
  8. def sum: Int

    Permalink
  9. def toBuckets: Vector[Long]

    Permalink

    Expands out the l-canonical representation of some number s into a list of bucket sizes in ascending order.

    Expands out the l-canonical representation of some number s into a list of bucket sizes in ascending order.

    returns

    vector of powers of 2 (where ret.sum == the original s)

  10. def toLong: Long

    Permalink

    Expands out an l-canonical representation into the original number.

    Expands out an l-canonical representation into the original number.

    returns

    The original s

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyVal

Inherited from Any

Ungrouped