weights

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node = multimap.Node[Value]

type Query

type Query struct {
	Partition date.Partition
	Universe  performance.Universe
	Mapping   account.Mapping
}

func (Query) Execute

func (q Query) Execute(j *journal.Builder, r *Report) *journal.Processor

type Renderer

type Renderer struct {
	SortAlphabetically bool
	// contains filtered or unexported fields
}

func (*Renderer) Render

func (rn *Renderer) Render(rep *Report) *table.Table

type Report

type Report struct {
	// contains filtered or unexported fields
}

func NewReport

func NewReport() *Report

func (*Report) Add

func (r *Report) Add(ss []string, date time.Time, w float64) error

func (*Report) PropagateWeights

func (r *Report) PropagateWeights()

func (*Report) SortWeighted

func (r *Report) SortWeighted()

type Value

type Value struct {
	Leaf    bool
	Weights map[time.Time]float64
	Weight  float64
}

Jump to

Keyboard shortcuts

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