oracle

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package oracle is a deliberately simple reference walker, used only by tests to check the engine's counts and totals on random graphs. It shares no code with the engine.

Package oracle is a deliberately naive reference walker, used only by tests to check the engine's counts and totals on random graphs. It shares no code with the engine: no pools, no flattening, no workers. It draws one value at a time from each distribution with its own generator.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Nodes      []string
	Sources    []string
	Categories []string
	Events     []uint64    // [source]
	Reach      [][]uint64  // [source][node]
	Entries    [][]float64 // [node][period]
	Total      []float64   // [period]
	ByCategory [][]float64 // [category][period]
	Beyond     float64     // value booked at or after the horizon
}

Result holds per-period counts and totals.

func Run

func Run(g variate.Graph, periods, burnIn int, seed uint64) *Result

Run simulates periods [−burnIn, periods) and books into [0, periods).

Jump to

Keyboard shortcuts

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