stat

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package stat holds statistical tools for financial simulation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Description

type Description struct {
	// Max is the maximum value of the sample.
	Max fin.Cents
	// Min is the minimum value of the sample
	Min fin.Cents

	// Avg is the arithmetic average of the sample.
	Avg fin.Cents
	// Med is the median of the sample.
	Med fin.Cents

	// Std is the standard deviation of the sample.
	Std fin.Cents
}

Description holds descriptive statistics to summarize a sample.

func Describe

func Describe(cc []fin.Cents) Description

Describe generates a descriptive statistics.

Jump to

Keyboard shortcuts

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