TimeWave

com.netflix.atlas.core.util.TimeWave
See theTimeWave companion object
case class TimeWave(wavelength: Duration, step: Long) extends Long => Double

Sine function based on timestamps. The sine values will be pre-computed for a single wavelength and then looked up for all others. This can be significantly faster than using the sine function directly for longer spans.

Value parameters

step

How often to compute the sine value within the wavelength.

wavelength

Span of time for the repeating pattern of the wave.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Long => Double
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def apply(t: Long): Double

Inherited methods

def andThen[A](g: Double => A): Long => A

Attributes

Inherited from:
Function1
def compose[A](g: A => Long): A => Double

Attributes

Inherited from:
Function1
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Function1 -> Any
Inherited from:
Function1