montecarlopi

package module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2021 License: MIT Imports: 9 Imported by: 0

README

Monte Carlo PI Estimation Atoms for Atomizer

CI Go Report Card codecov Go Reference PRs Welcome

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL