xpfunds

package
v0.0.0-...-570c6ec Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MaxDuration

func MaxDuration(funds []*Fund) int

func SetRatio

func SetRatio(funds []*Fund)

Types

type Fund

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

func NewFund

func NewFund(monthly []float64) *Fund

func ReadFunds

func ReadFunds() []*Fund

func (*Fund) Duration

func (f *Fund) Duration() int

func (*Fund) FeatureCount

func (f *Fund) FeatureCount() int

func (*Fund) Print

func (f *Fund) Print() string

func (*Fund) Return

func (f *Fund) Return(end, start int) float64

func (*Fund) Weighted

func (f *Fund) Weighted(weight []float64, end, start int) float64

End is inclusive, start is exclusive

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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