structs

package
v0.0.0-...-7636381 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllPerformers

type AllPerformers map[string]*PriceRecords

TODO(ajo): remove this struct and below methods into somehwere else perhaps replacing "PriceRecord" in the structs folder?

func (*AllPerformers) SetDeciles

func (ap *AllPerformers) SetDeciles(d *quantilr.Deciles) error

type CustomerContainer

type CustomerContainer struct {
	CustomerID   string
	PriceRecords []PriceRecord
	LifeSpan     int16
	DecileCounts []quantilr.DecilePair
}

type PriceRecord

type PriceRecord struct {
	TickerDate    time.Time
	PriceReturn   float64
	DecileOfPrice int8
}

TODO(ajo): remove this struct and below methods into somehwere else perhaps replacing "PriceRecord" in the structs folder?

func (*PriceRecord) SetDecile

func (pr *PriceRecord) SetDecile(d *quantilr.Deciles) error

type PriceRecords

type PriceRecords []PriceRecord

TODO(ajo): remove this struct and below methods into somehwere else perhaps replacing "PriceRecord" in the structs folder?

func (PriceRecords) Get

func (a PriceRecords) Get(i int) *PriceRecord

func (PriceRecords) Len

func (a PriceRecords) Len() int

func (PriceRecords) Less

func (a PriceRecords) Less(i, j int) bool

func (*PriceRecords) SetDeciles

func (prs *PriceRecords) SetDeciles(d *quantilr.Deciles) error

func (PriceRecords) Swap

func (a PriceRecords) Swap(i, j int)

type ProductContainer

type ProductContainer struct {
	ProductID       string
	DecileModel     distuv.Categorical
	CustomerRecords []CustomerContainer
}

Jump to

Keyboard shortcuts

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