class Log[A] extends Bound[A]
Log interpolate min ~ max ratio while preserving the original values and using the max and min to determine a scale range
- Source
- bound.scala
- Alphabetic
- By Inheritance
- Log
- Bound
- LerpInv
- Lerp
- AnyRef
- Any
- by richDrxAny
- by DrxBoundOps
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def %(ratio: Double): A
alias for
lerp
orapply
alias for
lerp
orapply
- Definition Classes
- Bound
- def *(gain: Double): Bound[A]
operator form to scale from the middle
scaleAtRatio(gain,0.5)
operator form to scale from the middle
scaleAtRatio(gain,0.5)
- Definition Classes
- Bound
- def +(other: String): String
- def ++(that: Bound[A]): Bound[A]
merge(grow to a union) bound (useful for parallel processing)
merge(grow to a union) bound (useful for parallel processing)
- Definition Classes
- Bound
- def --(that: Bound[A]): Option[Bound[A]]
- Definition Classes
- Bound
- def -->[B](that: Bound[B]): QuantitativeBound[A, B]
mapsTo, arrow, linear transformation, morphism ...
mapsTo, arrow, linear transformation, morphism ... https://www.wikiwand.com/en/Map_(mathematics)
- Definition Classes
- Bound
- def -->[B](range: Lerp[B]): Quantitative[A, B]
- Definition Classes
- LerpInv
- def -->[B](range: LerpInv[B]): QuantitativeInv[A, B]
- Definition Classes
- LerpInv
- def ->[B](y: B): (Log[A], B)
- def /(gain: Double): Bound[A]
- Definition Classes
- Bound
- def <(v: A): Boolean
- Definition Classes
- Bound
- def ==(that: Bound[A]): Boolean
- Definition Classes
- Bound
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def >(v: A): Boolean
- Definition Classes
- Bound
- def applyIf(t: Boolean, f: (Log[A]) => Log[A]): Log[A]
- Implicit
- This member is added by an implicit conversion from Log[A] toDrxAny[Log[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def applyIf(t: (Log[A]) => Boolean)(f: (Log[A]) => Log[A]): Log[A]
better chaining for types
better chaining for types
- Implicit
- This member is added by an implicit conversion from Log[A] toDrxAny[Log[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bisect(f: (A) => Boolean, N: Int = 64): A
generic bisect algorithm with N steps for a function that turns from false to true Note:this version requires the initial crossing occurs between min~max, or f(min) == false && f(max) == true)
generic bisect algorithm with N steps for a function that turns from false to true Note:this version requires the initial crossing occurs between min~max, or f(min) == false && f(max) == true)
- Definition Classes
- Bound
- def bisectOption(f: (A) => Boolean, N: Int = 64): Option[A]
- Definition Classes
- Bound
- def by[B](stepSize: B)(implicit s: BoundStep[A, B]): Iterator[A]
a nice step by function that matches the scala.Range form, Note: the implicit typeclass is used for bounds that can not be steped, like colors and also prevent the requirement of a hard coded type parameter for Bounds
a nice step by function that matches the scala.Range form, Note: the implicit typeclass is used for bounds that can not be steped, like colors and also prevent the requirement of a hard coded type parameter for Bounds
- Definition Classes
- Bound
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def contains(v: A): Boolean
- def containsAll(that: Bound[A]): Boolean
- Definition Classes
- Bound
- def containsNot(v: A): Boolean
- Definition Classes
- Bound
- def containsSome(that: Bound[A]): Boolean
of any part is overlapped cases | condition | a containsSome b | a containsAll b | a contains b is ambiguous (don't use) a{ b( ) } total true true a{ b( } ) partial true false a{} b( ) none false false b( a{} ) inside true false
of any part is overlapped cases | condition | a containsSome b | a containsAll b | a contains b is ambiguous (don't use) a{ b( ) } total true true a{ b( } ) partial true false a{} b( ) none false false b( a{} ) inside true false
- Definition Classes
- Bound
- def dist: Double
- Definition Classes
- Bound
- def elementOf(xs: Set[Log[A]]): Boolean
- Implicit
- This member is added by an implicit conversion from Log[A] toDrxAny[Log[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def end: A
alias for max
alias for max
- Definition Classes
- Lerp
- def ensuring(cond: (Log[A]) => Boolean, msg: => Any): Log[A]
- def ensuring(cond: (Log[A]) => Boolean): Log[A]
- def ensuring(cond: Boolean, msg: => Any): Log[A]
- def ensuring(cond: Boolean): Log[A]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(that: Any): Boolean
- Definition Classes
- Bound → AnyRef → Any
- def extend(n: Int)(implicit t: Tickable[A]): Bound[A]
- Definition Classes
- Bound
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def formatted(fmtstr: String): String
- final val gain: Double
Note: it feels magical and incredible that the interpolation is independent of a log base value, but rather the max/min gain of the bound
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def in_:(b: Bound[A]): Boolean
convenience function to make containment tests read better with right associativity
convenience function to make containment tests read better with right associativity
- Definition Classes
- Bound
- def in_:(v: A): Boolean
- Definition Classes
- Bound
- def isInside(b: Bound[A]): Boolean
convenience function to make containment tests read better where
a isInside b
==b containsAll a
convenience function to make containment tests read better where
a isInside b
==b containsAll a
- Definition Classes
- Bound
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isSingular: Boolean
- Definition Classes
- Bound
- def lerp(p: Double): A
type class based interpolator (0 to 1)
- def linearTicks(n: Int)(implicit t: Tickable[A]): Iterable[A]
- def log: Log[A]
- Definition Classes
- Bound
- def logTicks(n: Int, base: Double = 10)(implicit t: Tickable[A]): Iterable[A]
- Definition Classes
- LerpInv
- def map[B](f: (A) => B)(implicit b: Boundable[B]): Bound[B]
generic function mapping to convert one bound to another type (that is boundable)
generic function mapping to convert one bound to another type (that is boundable)
- Definition Classes
- Bound
- def mapsTo[B](that: Bound[B]): QuantitativeBound[A, B]
alias for
mapsTo
alias for
mapsTo
- Definition Classes
- Bound
- val max: A
- def mid: A
convenience of the mid value
convenience of the mid value
- Definition Classes
- Lerp
- val min: A
- def mobius(x: A): A
modulus in a wrapping fashion
modulus in a wrapping fashion
- Definition Classes
- LerpInv
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noneIf(f: (Log[A]) => Boolean): Option[Log[A]]
- Implicit
- This member is added by an implicit conversion from Log[A] toDrxAny[Log[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def normal(implicit rand: Rand): A
- Definition Classes
- Lerp
- def normalize(xs: Iterable[A]): Iterable[Double]
- Definition Classes
- LerpInv
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def optionIf(f: (Log[A]) => Boolean): Option[Log[A]]
optionally wrap an object
optionally wrap an object
- Implicit
- This member is added by an implicit conversion from Log[A] toDrxAny[Log[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def out_:(v: A): Boolean
- Definition Classes
- Bound
- def preApply[B](f: (Log[A]) => B): B
a preApply f => f(a)
a preApply f => f(a)
- Implicit
- This member is added by an implicit conversion from Log[A] toDrxAny[Log[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def pulse(period: Time): A
- Definition Classes
- Lerp
- def ramp(t: Time)(implicit t0: Date): A
- Definition Classes
- Lerp
- def ratioOf(x: A): Double
reverse lookup while not mathematically sound a return of 0.5 is nice for visuals
- def ratioOfOption(x: A): Option[Double]
- Definition Classes
- Bound
- def reverse: Bound[A]
- Definition Classes
- Bound
- def sat(x: A): A
simple way to lookup and keep within a bound
simple way to lookup and keep within a bound
- Definition Classes
- Bound
- def satBy(that: Bound[A]): Bound[A]
produce a new bound that limits the current bound by the second (Note: this is not an intersection because this operation is always defined but is also not associative)
produce a new bound that limits the current bound by the second (Note: this is not an intersection because this operation is always defined but is also not associative)
- Definition Classes
- Bound
- def satOption(x: A): Option[A]
simple way to lookup and return only if it is in the bound
simple way to lookup and return only if it is in the bound
- Definition Classes
- Bound
- def scale(gain: Double): Bound[A]
scale with the pivot origin at min (simply applies the gain to the max value)
scale with the pivot origin at min (simply applies the gain to the max value)
- Definition Classes
- Bound
- def scaleAt(gain: Double, pivot: A): Bound[A]
convenience function for scaleAtRatio by using the imutable pivot lookup value
convenience function for scaleAtRatio by using the imutable pivot lookup value
- Definition Classes
- Bound
- def scaleAtRatio(gain: Double, pivot: Double): Bound[A]
generic scale and translate around an immutable pivot point without inverse lookup
generic scale and translate around an immutable pivot point without inverse lookup
- Definition Classes
- Bound
- def sideEffect(f: (Log[A]) => Unit): Log[A]
side effect filter
side effect filter
- Implicit
- This member is added by an implicit conversion from Log[A] toDrxAny[Log[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def someIf(f: (Log[A]) => Boolean): Option[Log[A]]
- Implicit
- This member is added by an implicit conversion from Log[A] toDrxAny[Log[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def start: A
alias for min
alias for min
- Definition Classes
- Lerp
- def swap: Bound[A]
- Definition Classes
- Bound
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def take(n: Int): Iterable[A]
- Definition Classes
- Lerp
- val thisAny: Log[A]
- Implicit
- This member is added by an implicit conversion from Log[A] toDrxAny[Log[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def ticks(n: Int)(implicit t: Tickable[A]): Iterable[A]
- def ticksOn(path: Segment)(implicit t: Tickable[A]): Iterable[Text]
auto select tick count based on segment length
auto select tick count based on segment length
- Definition Classes
- LerpInv
- def ticksOn(path: Lerp[Vec], n: Int)(implicit t: Tickable[A]): Iterable[Text]
- Definition Classes
- LerpInv
- final def ticksWithFormat(n: Int)(implicit t: Tickable[A], f: Format[A]): Iterable[(A, String)]
- Definition Classes
- LerpInv
- def till(maxArg: Log[A]): Bound[Log[A]]
Bound construction since the Range constructor is deprecated
Bound construction since the Range constructor is deprecated
- def toBound(implicit b: Boundable[A]): Bound[A]
- Definition Classes
- Lerp
- def toString(): String
- Definition Classes
- Bound → AnyRef → Any
- def translate(ratio: Double): Bound[A]
generic scale and translate without inverse lookup
generic scale and translate without inverse lookup
- Definition Classes
- Bound
- def translateBy(from: A, to: A): Bound[A]
convenience function to help calculate translation ratios based on the bound values
convenience function to help calculate translation ratios based on the bound values
- Definition Classes
- Bound
- def uniform(implicit rand: Rand): A
- Definition Classes
- Lerp
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def zip[B](xs: Iterable[B]): Iterable[(A, B)]
- Definition Classes
- Lerp
- def ∈:(v: A): Boolean
- Definition Classes
- Bound
- def ∉:(v: A): Boolean
- Definition Classes
- Bound
Deprecated Value Members
- def ?>(f: (Log[A]) => Boolean): Option[Log[A]]
alias for option if
alias for option if
- Implicit
- This member is added by an implicit conversion from Log[A] toDrxAny[Log[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
- final def apply(ratio: Double): A
- Definition Classes
- Bound
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) use
lerp
instead since bound now extends Lerp,lerp
is the entry point and can be mixed in better, (it will help catch overloaded errors that extended the wrong function root function)
- def containsNorm(v: A): Boolean
- Definition Classes
- Bound
- Annotations
- @deprecated
- Deprecated
(Since version 0.2.13) the 'normal'
contains
method should provide this functionality
- def from[B](that: Bound[B]): QuantitativeBound[B, A]
- Definition Classes
- Bound
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.00) use (a to b) instead of (b from a) to many verbs
- def mean: A
- Definition Classes
- Lerp
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) use
mid
instead since 0.5 may not be the mean
- lazy val norm: Bound[A]
Boundable has this as an overridable method that may be specific for some special classses
Boundable has this as an overridable method that may be specific for some special classses
- Definition Classes
- Bound
- Annotations
- @deprecated
- Deprecated
(Since version 0.2.13) try not to use this function, it was to specialized
- def steps(N: Int): Seq[A]
- Definition Classes
- Lerp
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.4) use take(N:Int) for a more scala semantic
- def to[B](that: Bound[B]): QuantitativeBound[A, B]
- Definition Classes
- Bound
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.00) use --> insted of the harder to see and similar 'to' in Range()
- def |>[B](f: (Log[A]) => B): B
- Implicit
- This member is added by an implicit conversion from Log[A] toDrxAny[Log[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)
- def →[B](y: B): (Log[A], B)
- Implicit
- This member is added by an implicit conversion from Log[A] toArrowAssoc[Log[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.