SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.stats.timeseries.univariate
Class Util

java.lang.Object
  extended by com.numericalmethod.suanshu.stats.timeseries.univariate.Util

public class Util
extends java.lang.Object

This class collects the utility functions applied to univariate TimeSeries.


Constructor Summary
Util()
           
 
Method Summary
static Matrix toMatrix(TimeSeries<?> ts)
          Cast a time series into a column matrix, discarding the timestamps.
static Vector toVector(TimeSeries<?> ts)
          Cast a time series into a vector, discarding the timestamps.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

toVector

public static Vector toVector(TimeSeries<?> ts)
Cast a time series into a vector, discarding the timestamps.

Parameters:
ts - a time series
Returns:
a vector of values

toMatrix

public static Matrix toMatrix(TimeSeries<?> ts)
Cast a time series into a column matrix, discarding the timestamps.

Parameters:
ts - a time series
Returns:
a column matrix of values

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.