Skip to content

Commit 8de6ab6

Browse files
committed
Added tsconvolve, tscoskew and tscokurt methods
1 parent 804db65 commit 8de6ab6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+138
-3
lines changed

.Rbuildignore

100644100755
File mode changed.

.github/.gitignore

100644100755
File mode changed.

.github/workflows/R-CMD-check.yaml

100644100755
File mode changed.

.gitignore

100644100755
File mode changed.

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Package: tsmethods
22
Type: Package
33
Title: Time Series Methods
44
Version: 1.0.2
5-
Date: 2024-04-01
5+
Date: 2024-08-23
66
Authors@R: c(person("Alexios", "Galanos", role = c("aut", "cre","cph"), email = "[email protected]"))
77
Maintainer: Alexios Galanos <[email protected]>
88
Description: Generic methods for use in a time series probabilistic framework, allowing for a common calling convention across packages. Additional methods for time series prediction ensembles and probabilistic plotting of predictions is included. A more detailed description is available at <https://www.nopredict.com/packages/tsmethods> which shows the currently implemented methods in the 'tsmodels' framework.
@@ -11,7 +11,7 @@ Imports: methods, zoo, xts, data.table
1111
Encoding: UTF-8
1212
LazyData: true
1313
URL: https://www.nopredict.com/packages/tsmethods, https://github.com/tsmodels/tsmethods
14-
RoxygenNote: 7.3.1
14+
RoxygenNote: 7.3.2
1515
Suggests:
1616
testthat (>= 3.0.0)
1717
Config/testthat/edition: 3

NAMESPACE

100644100755
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@ export(tsaggregate)
1616
export(tsbacktest)
1717
export(tsbenchmark)
1818
export(tscalibrate)
19+
export(tscokurt)
1920
export(tsconvert)
21+
export(tsconvolve)
2022
export(tscor)
23+
export(tscoskew)
2124
export(tscov)
2225
export(tsdecompose)
2326
export(tsdiagnose)

NEWS.md

100644100755
Lines changed: 2 additions & 0 deletions

R/convert.R

100644100755
File mode changed.

R/distributions.R

100644100755
File mode changed.

R/methods.R

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,3 +394,61 @@ halflife <- function(object, ...)
394394
{
395395
UseMethod("halflife")
396396
}
397+
398+
#' Convolution of Distributions
399+
#'
400+
#' @description Generic method for convolution of conditional distribution.
401+
#' @param object an object.
402+
#' @param ... additional parameters passed to the method.
403+
#' @returns The convolved density.
404+
#' @details The method is meant to apply the Fast Fourier Transform
405+
#' to the characteristic function of a distribution. Applications of this can
406+
#' be found in the Independent Factor Conditional Density Models.
407+
#' @aliases tsconvolve
408+
#' @rdname tsconvolve
409+
#' @export
410+
#'
411+
#
412+
tsconvolve <- function(object, ...)
413+
{
414+
UseMethod("tsconvolve")
415+
}
416+
417+
#' Co-Skewness
418+
#'
419+
#' @description Generic method for the co-skewness of a model.
420+
#' @param object an object.
421+
#' @param ... additional parameters passed to the method.
422+
#' @returns The co-skewness tensor (folded or unfolded).
423+
#' @details The method calculates the conditional co-skewness of a model.
424+
#' Applications of this can be found in the Independent Factor Conditional
425+
#' Density Models.
426+
#' @aliases tscoskew
427+
#' @rdname tscoskew
428+
#' @export
429+
#'
430+
#
431+
tscoskew <- function(object, ...)
432+
{
433+
UseMethod("tscoskew")
434+
}
435+
436+
437+
#' Co-Kurtosis
438+
#'
439+
#' @description Generic method for the co-kurtosis of a model.
440+
#' @param object an object.
441+
#' @param ... additional parameters passed to the method.
442+
#' @returns The co-kurtosis tensor (folded or unfolded).
443+
#' @details The method calculates the conditional co-kurtosis of a model.
444+
#' Applications of this can be found in the Independent Factor Conditional
445+
#' Density Models.
446+
#' @aliases tscokurt
447+
#' @rdname tscokurt
448+
#' @export
449+
#'
450+
#
451+
tscokurt <- function(object, ...)
452+
{
453+
UseMethod("tscokurt")
454+
}

0 commit comments

Comments
 (0)