compute

package
v0.0.3-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountsTotalBalance

func AccountsTotalBalance(accounts *model.Accounts) uint64

AccountsTotalBalance computes the total balance of all accounts

func CoumputeQuantiles

func CoumputeQuantiles(file string, opts *Options) (*model.Stats, error)

CoumputeQuantiles computes quantiles for a given account backup JSON file

Types

type Options

type Options struct {
	Blacklist        map[string]struct{}
	Quantiles        []uint
	MaxRichListCount uint
}

Options for computing quantiles

Jump to

Keyboard shortcuts

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