サドルの Series クラスに基づいて TimeSeries クラスを作成しようとしています。テストで次のエラーが発生します。
java.lang.NoClassDefFoundError: org/saddle/scalar/ScalarTag
私の時系列クラス:
object TimeSeries {
def apply[V: ST](values: (LocalDate, V)*): TimeSeries[V] = {
new TimeSeries(Series(values: _*))
}
}
class TimeSeries[V: ST](values: Series[LocalDate, V]) { ... }
私のテスト:
class TimeSeriesTest extends WordSpec with GivenWhenThen with ShouldMatchersForJUnit {
"TimeSeries" when {
val d2014_02_01 = new LocalDate(2014, 2, 1);
val d2014_02_03 = new LocalDate(2014, 2, 3);
val d2014_02_04 = new LocalDate(2014, 2, 4);
"created with data points as arguments" should {
"have the earliest point as start, the latest as the end, and a length" in {
val a = TimeSeries(d2014_02_01 -> 0.6, d2014_02_03 -> 4.5, d2014_02_04 -> 0.9)
...
}
}
}
私の推測では、TimeSeries クラスにバインドされたコンテキストと関係があると思います。私はそのトピックに不慣れです。助言がありますか?