edu.arizona.sista.struct

Counter

Related Docs: object Counter | package struct

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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Counter()

  2. new Counter(defaultReturnValue: Double)

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

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

Value Members

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

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

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

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

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

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

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

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

    Equivalent to incrementCount with inc = 1

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

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

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

    Equivalent to decrementCount

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

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

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

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

  16. def argMin: (T, Double)

  17. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  18. def clone(): AnyRef

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

  20. def decrementCount(key: T): Double

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

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

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

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

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

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

  27. def finalize(): Unit

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

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

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

  31. def getTotal: Double

  32. def hashCode(): Int

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

  34. final def isInstanceOf[T0]: Boolean

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

  36. def l1Norm: Double

  37. def l2Norm: Double

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

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

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

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

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

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

  44. def saveTo(w: Writer): Unit

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

  46. def size: Int

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

    Sorts counts in descending order

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

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

    Definition Classes
    AnyRef
  50. def toJSON: String

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

  52. def toShortString: String

  53. def toString(): String

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

  55. def values: Seq[Double]

  56. final def wait(): Unit

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped