RateChangesPerPeriod

vecxt_re.RateChangesPerPeriod
See theRateChangesPerPeriod companion class

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Concrete methods

inline def constant(numPeriods: Int, factor: Double): RateChangesPerPeriod

Create an RateChangesPerPeriod with a constant rate change for all periods.

Create an RateChangesPerPeriod with a constant rate change for all periods.

Value parameters

factor

The constant factor for each period (e.g., 1.05 for 5% per period)

numPeriods

Number of historical periods

Attributes

Returns

RateChangesPerPeriod with constant factors

inline def fromRateChanges(rateChanges: Array[Double]): RateChangesPerPeriod

Create an RateChangesPerPeriod from an array of rate changes (as percentages).

Create an RateChangesPerPeriod from an array of rate changes (as percentages).

Value parameters

rateChanges

Array of rate changes where each value is the percentage change. e.g., 5.0 means a 5% increase, -3.0 means a 3% decrease.

Attributes

Returns

RateChangesPerPeriod with the rate changes converted to factors