ror

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: 1 Imported by: 0

Documentation

Overview

Package ror calculates rates of return.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rate

type Rate float64

Rate represents generic rate of something, e.g. rate of return.

func Dividend

func Dividend(r *pb.Record) Rate

Dividend calculates the rate of return of dividends. It is equal to dividends paid for one unit of S&P Composite currency:

Dividend / SPComposite

func SPComposite

func SPComposite(prev, curr *pb.Record) Rate

SPComposite calculates S&P's rate of return:

SPComposite / SPComposite_prev_month

Jump to

Keyboard shortcuts

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