Learn R Programming

pcts (version 0.15.8)

BareCycle-class: Class BareCycle

Description

Class BareCycle.

Arguments

Objects from the Class

Objects can be created by calls of the form pcCycle(nseasons) or new("BareCycle", nseasons).

Class "BareCycle" represents the number of seasons and is sufficient for many computations.

Slots

nseasons:

Object of class "integer", the number of seasons.

Extends

Class "BasicCycle", directly.

Methods

initialize

signature(.Object = "BareCycle"): ...

coerce

signature(from = "BareCycle", to = "SimpleCycle"): ...

coerce

signature(from = "BuiltinCycle", to = "BareCycle"): ...

nSeasons

signature(object = "BareCycle"): ...

show

signature(object = "BareCycle"): ...

% \item{.get_origin}{\code{signature(cycle = "BareCycle")}: ... } % \item{.nperiods}{\code{signature(cycle = "BareCycle")}: ... }

Author

Georgi N. Boshnakov

See Also

pcCycle for creation of cycle objects and extraction of cycle part of time series,

BuiltinCycle-class, SimpleCycle-class,

DayWeekCycle-class, MonthYearCycle-class, OpenCloseCycle-class, QuarterYearCycle-class PartialCycle-class,

BasicCycle-class (virtual, for use in signatures)

Examples

Run this code
pcCycle(5)
cycle <- new("BareCycle", 5)
identical(new("BareCycle", 5), pcCycle(5)) # TRUE

unitSeason(cycle)
unitCycle(cycle)
allSeasons(cycle)
seqSeasons(cycle)

cycle[]
cycle[3]

## if cycle represents 5-days week one may prefer:
BuiltinCycle(5)

Run the code above in your browser using DataLab