Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Estimate ¶
func Estimate(fe *FilterEstimate) big.Int
Returns the Q.0 position estimate of the filter
func ExtrapolatedCumSumOfRatio ¶
func ExtrapolatedCumSumOfRatio(delta abi.ChainEpoch, relativeStart abi.ChainEpoch, estimateNum, estimateDenom FilterEstimate) big.Int
Extrapolate the CumSumRatio given two filters. Output is in Q.128 format
Types ¶
type FilterEstimate ¶
Alpha Beta Filter "position" (value) and "velocity" (rate of change of value) estimates Estimates are in Q.128 format
func NewEstimate ¶
func NewEstimate(position, velocity big.Int) FilterEstimate
Create a new filter estimate given two Q.0 format ints.
func (*FilterEstimate) MarshalCBOR ¶
func (t *FilterEstimate) MarshalCBOR(w io.Writer) error
func (*FilterEstimate) UnmarshalCBOR ¶
func (t *FilterEstimate) UnmarshalCBOR(r io.Reader) error
Click to show internal directories.
Click to hide internal directories.