Packages

case class Discrete[A](step: A)(implicit d: Discretable[A]) extends Scale[A, A] with Product with Serializable

Discrete scale offers a simple way to map [A] to a discrete set of [A's] separated by a step size //TODO deprecate?? this has been used more with Bound.take or Bound.step??

step

the step size of the discretization

Source
scale.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Discrete
  2. Serializable
  3. Product
  4. Equals
  5. Scale
  6. ScaleOneWay
  7. AnyRef
  8. Any
Implicitly
  1. by richDrxAny
  2. by DrxBoundOps
  3. by any2stringadd
  4. by StringFormat
  5. by Ensuring
  6. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Discrete(step: A)(implicit d: Discretable[A])

    step

    the step size of the discretization

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def %(a: A): A

    alias for apply which is a kind of evaluator

    alias for apply which is a kind of evaluator

    Definition Classes
    ScaleOneWay
  4. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from Discrete[A] toany2stringadd[Discrete[A]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  5. def ->[B](y: B): (Discrete[A], B)
    Implicit
    This member is added by an implicit conversion from Discrete[A] toArrowAssoc[Discrete[A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. def apply(x: A): A
    Definition Classes
    DiscreteScaleOneWay
  8. def applyIf(t: Boolean, f: (Discrete[A]) => Discrete[A]): Discrete[A]
    Implicit
    This member is added by an implicit conversion from Discrete[A] toDrxAny[Discrete[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  9. def applyIf(t: (Discrete[A]) => Boolean)(f: (Discrete[A]) => Discrete[A]): Discrete[A]

    better chaining for types

    better chaining for types

    Implicit
    This member is added by an implicit conversion from Discrete[A] toDrxAny[Discrete[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  12. def contains(x: A): Boolean

    true if the argument can be applied to a domain

    true if the argument can be applied to a domain

    Definition Classes
    DiscreteScaleOneWay
  13. def elementOf(xs: Set[Discrete[A]]): Boolean
    Implicit
    This member is added by an implicit conversion from Discrete[A] toDrxAny[Discrete[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  14. def ensuring(cond: (Discrete[A]) => Boolean, msg: => Any): Discrete[A]
    Implicit
    This member is added by an implicit conversion from Discrete[A] toEnsuring[Discrete[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: (Discrete[A]) => Boolean): Discrete[A]
    Implicit
    This member is added by an implicit conversion from Discrete[A] toEnsuring[Discrete[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean, msg: => Any): Discrete[A]
    Implicit
    This member is added by an implicit conversion from Discrete[A] toEnsuring[Discrete[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean): Discrete[A]
    Implicit
    This member is added by an implicit conversion from Discrete[A] toEnsuring[Discrete[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  20. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Discrete[A] toStringFormat[Discrete[A]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  21. def get(a: A): Option[A]

    first check if the argument can be applied to a domain then apply the scale

    first check if the argument can be applied to a domain then apply the scale

    Definition Classes
    ScaleOneWay
  22. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def inv(x: A): A
    Definition Classes
    DiscreteScale
  24. def invOption(b: A): Option[A]

    invOption uses inv with exception handling (divide by zero is ugly).

    invOption uses inv with exception handling (divide by zero is ugly). This method can be overridden for specific case speedup

    Definition Classes
    Scale
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. def noneIf(f: (Discrete[A]) => Boolean): Option[Discrete[A]]
    Implicit
    This member is added by an implicit conversion from Discrete[A] toDrxAny[Discrete[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. def optionIf(f: (Discrete[A]) => Boolean): Option[Discrete[A]]

    optionally wrap an object

    optionally wrap an object

    Implicit
    This member is added by an implicit conversion from Discrete[A] toDrxAny[Discrete[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  31. def preApply[B](f: (Discrete[A]) => B): B

    a preApply f => f(a)

    a preApply f => f(a)

    Implicit
    This member is added by an implicit conversion from Discrete[A] toDrxAny[Discrete[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  32. def productElementNames: Iterator[String]
    Definition Classes
    Product
  33. def sideEffect(f: (Discrete[A]) => Unit): Discrete[A]

    side effect filter

    side effect filter

    Implicit
    This member is added by an implicit conversion from Discrete[A] toDrxAny[Discrete[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  34. def someIf(f: (Discrete[A]) => Boolean): Option[Discrete[A]]
    Implicit
    This member is added by an implicit conversion from Discrete[A] toDrxAny[Discrete[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  35. val step: A
  36. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  37. val thisAny: Discrete[A]
    Implicit
    This member is added by an implicit conversion from Discrete[A] toDrxAny[Discrete[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
  38. def till(maxArg: Discrete[A]): Bound[Discrete[A]]

    Bound construction since the Range constructor is deprecated

    Bound construction since the Range constructor is deprecated

    Implicit
    This member is added by an implicit conversion from Discrete[A] toBoundOps[Discrete[A]] performed by method DrxBoundOps in cc.drx.predef.Enrich.This conversion will take place only if an implicit value of type Boundable[Discrete[A]] is in scope.
    Definition Classes
    BoundOps
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def ?>(f: (Discrete[A]) => Boolean): Option[Discrete[A]]

    alias for option if

    alias for option if

    Implicit
    This member is added by an implicit conversion from Discrete[A] toDrxAny[Discrete[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
    Annotations
    @deprecated
    Deprecated

    (Since version v0.2.15) to many symbols are hard to undertand

  2. def |>[B](f: (Discrete[A]) => B): B
    Implicit
    This member is added by an implicit conversion from Discrete[A] toDrxAny[Discrete[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
    Definition Classes
    DrxAny
    Annotations
    @deprecated
    Deprecated

    (Since version v0.2.15) use preApply if you must (symbols are concise without concision)

  3. def [B](y: B): (Discrete[A], B)
    Implicit
    This member is added by an implicit conversion from Discrete[A] toArrowAssoc[Discrete[A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Scale[A, A]

Inherited from ScaleOneWay[A, A]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion richDrxAny fromDiscrete[A] to DrxAny[Discrete[A]]

Inherited by implicit conversion DrxBoundOps fromDiscrete[A] to BoundOps[Discrete[A]]

Inherited by implicit conversion any2stringadd fromDiscrete[A] to any2stringadd[Discrete[A]]

Inherited by implicit conversion StringFormat fromDiscrete[A] to StringFormat[Discrete[A]]

Inherited by implicit conversion Ensuring fromDiscrete[A] to Ensuring[Discrete[A]]

Inherited by implicit conversion ArrowAssoc fromDiscrete[A] to ArrowAssoc[Discrete[A]]

Ungrouped