README ¶ Monte Carlo PI Estimation Atoms for Atomizer Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type MonteCarlo func (mc *MonteCarlo) Process(ctx context.Context, conductor engine.Conductor, electron *engine.Electron) (result []byte, err error) type Toss func (t *Toss) Process(ctx context.Context, conductor engine.Conductor, electron *engine.Electron) (result []byte, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type MonteCarlo ¶ type MonteCarlo struct { // contains filtered or unexported fields } MonteCarlo is the atom for estimating PI func (*MonteCarlo) Process ¶ func (mc *MonteCarlo) Process( ctx context.Context, conductor engine.Conductor, electron *engine.Electron, ) (result []byte, err error) Process test method type Toss ¶ type Toss struct { Value int `json:"value"` } Toss randomly tosses darts func (*Toss) Process ¶ func (t *Toss) Process( ctx context.Context, conductor engine.Conductor, electron *engine.Electron, ) (result []byte, err error) Process test method Source Files ¶ View all Source files electron.go init.go montecarlo.go toss.go Click to show internal directories. Click to hide internal directories.