github.com/filecoin-project/specs-actors/v4@v4.0.2/actors/util/smoothing/testing.go (about) 1 package smoothing 2 3 import ( 4 "github.com/filecoin-project/go-state-types/big" 5 ) 6 7 // Returns an estimate with position val and velocity 0 8 func TestingConstantEstimate(val big.Int) FilterEstimate { 9 return NewEstimate(val, big.Zero()) 10 } 11 12 // Returns and estimate with postion x and velocity v 13 func TestingEstimate(x, v big.Int) FilterEstimate { 14 return NewEstimate(x, v) 15 }