| BareCycle-class {pcts} | R Documentation |
Class BareCycle
Description
Class BareCycle.
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"): ...
Author(s)
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
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)