ExPostFacto.DataPoint (ex_post_facto v0.2.1)

View Source

DataPoint is a wrapper around data that represents an action taken, e.g. a buy or a sell.

Summary

Functions

Creates a new data point struct.

Functions

new(datum, action, index)

@spec new(datum :: ExPostFacto.InputData.t(), action :: atom(), index :: integer()) ::
  %ExPostFacto.DataPoint{action: term(), datum: term(), index: term()}

Creates a new data point struct.