Class/Object

org.clulab.struct

Counter

Related Docs: object Counter | package struct

Permalink

class Counter[T] extends Serializable

Counts elements of type T User: mihais Date: 3/18/13

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Counter
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Counter()

    Permalink
  2. new Counter(defaultReturnValue: Double)

    Permalink
  3. new Counter(elements: Iterable[T])

    Permalink
  4. new Counter(counts: HashMap[T, MutableNumber[Double]], defaultReturnValue: Double = 0.0, total: Double = 0.0)

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def *(other: Counter[T]): Counter[T]

    Permalink
  4. def *(toMult: Double): Counter[T]

    Permalink
  5. def +(x: Double): Counter[T]

    Permalink
  6. def +(toAdd: Counter[T]): Counter[T]

    Permalink
  7. def +=(toAdd: Counter[T]): Unit

    Permalink
  8. def +=(key: T): Double

    Permalink

    Equivalent to incrementCount with inc = 1

  9. def -(x: Double): Counter[T]

    Permalink
  10. def -(toSub: Counter[T]): Counter[T]

    Permalink
  11. def -=(key: T): Double

    Permalink

    Equivalent to decrementCount

  12. def /(other: Counter[T]): Counter[T]

    Permalink
  13. def /(toDiv: Double): Counter[T]

    Permalink
  14. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  15. def argMax: (T, Double)

    Permalink
  16. def argMin: (T, Double)

    Permalink
  17. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  18. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. def contains(key: T): Boolean

    Permalink
  20. def decrementCount(key: T): Double

    Permalink
  21. def decrementCount(key: T, inc: Double): Double

    Permalink
  22. def dotProduct(toDot: Counter[T]): Double

    Permalink
  23. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. def equals(other: Any): Boolean

    Permalink
    Definition Classes
    Counter → AnyRef → Any
  25. def filter(p: ((T, Double)) ⇒ Boolean): Counter[T]

    Permalink
  26. def filterValues(p: (Double) ⇒ Boolean): Counter[T]

    Permalink
  27. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  28. def flatMap(f: ((T, Double)) ⇒ Counter[T]): Counter[T]

    Permalink
  29. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  30. def getCount(key: T): Double

    Permalink
  31. def getTotal: Double

    Permalink
  32. def hashCode(): Int

    Permalink
    Definition Classes
    Counter → AnyRef → Any
  33. def incrementCount(key: T, inc: Double = 1.0): Double

    Permalink
  34. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  35. def keySet: Set[T]

    Permalink
  36. def l1Norm: Double

    Permalink
  37. def l2Norm: Double

    Permalink
  38. def map(f: ((T, Double)) ⇒ Double): Counter[T]

    Permalink
  39. def mapValues(f: (Double) ⇒ Double): Counter[T]

    Permalink
  40. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  41. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  42. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  43. def proportion(key: T): Double

    Permalink
  44. def saveTo(w: Writer): Unit

    Permalink
  45. def setCount(key: T, value: Double): Unit

    Permalink
  46. def size: Int

    Permalink
  47. def sorted(descending: Boolean): List[(T, Double)]

    Permalink

    Sorts counts in descending order, if argument is true.

  48. def sorted: List[(T, Double)]

    Permalink
  49. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  50. def toJSON: String

    Permalink
  51. def toSeq: Seq[(T, Double)]

    Permalink
  52. def toShortString: String

    Permalink
  53. def toString(): String

    Permalink
    Definition Classes
    Counter → AnyRef → Any
  54. def topKeys(n: Int): List[T]

    Permalink
  55. def values: Seq[Double]

    Permalink
  56. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  58. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  59. def zipWith(f: (Double, Double) ⇒ Double)(other: Counter[T]): Counter[T]

    Permalink

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped