Skip to content

Commit

Permalink
fixed package name in Ets
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilvavs committed Jun 25, 2015
1 parent 609ddaa commit ab61dfe
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 14 deletions.
7 changes: 3 additions & 4 deletions src/main/scala/com/prognos/forecast/Ets.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.ets.forecast
package com.prognos.forecast

import breeze.linalg.DenseVector
import com.prognos.Series
Expand All @@ -9,10 +9,9 @@ import math.pow
*/

/*
* Usage : val a = new Ets(1.0, 3.6, DenseVector(1.3, 3,2, 2))
* or val a = new Ets()
* Usage : val a = new Ets()
* */
class Ets{
class Ets {
// amn, anm, aam, ama, mma, amm models are not allowed

var initialLevel = -1.0
Expand Down
2 changes: 1 addition & 1 deletion src/test/scala/com/prognos/forecast/EtsTest_xAA.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.ets.forecast
package com.prognos.forecast

/**
* Created by nikhil.vavs on 11/06/15.
Expand Down
2 changes: 1 addition & 1 deletion src/test/scala/com/prognos/forecast/EtsTest_xAM.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.ets.forecast
package com.prognos.forecast

/**
* Created by nikhil.vavs on 11/06/15.
Expand Down
2 changes: 1 addition & 1 deletion src/test/scala/com/prognos/forecast/EtsTest_xAN.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.ets.forecast
package com.prognos.forecast

/**
* Created by nikhil.vavs on 11/06/15.
Expand Down
4 changes: 2 additions & 2 deletions src/test/scala/com/prognos/forecast/EtsTest_xMM.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.ets.forecast
package com.prognos.forecast

/**
* Created by nikhil.vavs on 11/06/15.
Expand All @@ -12,7 +12,7 @@ import com.prognos.testdata.TouristsData

class EtsTest_xMM extends FlatSpec with Matchers{
// amm not allowed
it should "testing MMM" in {
it should "test MMM" in {
val series = Series(TouristsData.seasonalRangeData(1999, 2010).map {value => DoubleUtil.round(value)})
val algo = new Ets()
algo.setInitialValues(23.5318, 1.014, DenseVector(1.2772, 0.760, 0.9907, 1.07882))
Expand Down
4 changes: 2 additions & 2 deletions src/test/scala/com/prognos/forecast/EtsTest_xMN.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.ets.forecast
package com.prognos.forecast

/**
* Created by nikhil.vavs on 11/06/15.
Expand All @@ -11,7 +11,7 @@ import org.scalatest.{FlatSpec,Matchers}
import com.prognos.testdata.AirPassengerData

class EtsTest_xMN extends FlatSpec with Matchers{
it should "calculate forecasts using method with alpha=0.8 and beta=0.2" in {
it should "test amn" in {
val series = Series(AirPassengerData.rangeData(1970, 2009).map {value => DoubleUtil.round(value)})
val algo = new Ets()
algo.setInitialValues(7.6358, 1.0433, DenseVector(1.0))
Expand Down
2 changes: 1 addition & 1 deletion src/test/scala/com/prognos/forecast/EtsTest_xNA.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.ets.forecast
package com.prognos.forecast

/**
* Created by nikhil.vavs on 11/06/15.
Expand Down
2 changes: 1 addition & 1 deletion src/test/scala/com/prognos/forecast/EtsTest_xNM.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.ets.forecast
package com.prognos.forecast

/**
* Created by nikhil.vavs on 11/06/15.
Expand Down
2 changes: 1 addition & 1 deletion src/test/scala/com/prognos/forecast/EtsTest_xNN.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.ets.forecast
package com.prognos.forecast

/**
* Created by nikhil.vavs on 11/06/15.
Expand Down

0 comments on commit ab61dfe

Please sign in to comment.