T
- the value typepublic class Observation<T> extends Object
The name observation
is traditionally used to denote an element of a time
series in statistics.
Modifier | Constructor and Description |
---|---|
protected |
Observation(TimeDomain domain,
long index,
T value)
Construct an observation.
|
|
Observation(TimeIndex time,
T value)
Construct an observation with a time index.
|
Modifier and Type | Method and Description |
---|---|
TimeDomain |
getDomain()
Return the time domain.
|
long |
getIndex()
Return the numerical time index.
|
TimeIndex |
getTime()
Return the time index.
|
T |
getValue()
Return the value.
|
String |
toString() |
protected Observation(TimeDomain domain, long index, T value)
domain
- a non-null domainindex
- a non-negative numbervalue
- a valuepublic long getIndex()
public TimeIndex getTime()
public TimeDomain getDomain()
public T getValue()
Copyright © 2017. All rights reserved.