Skip to content

Commit

Permalink
Added tsconvolve, tscoskew and tscokurt methods
Browse files Browse the repository at this point in the history
  • Loading branch information
alexiosg committed Aug 23, 2024
1 parent 804db65 commit 8de6ab6
Show file tree
Hide file tree
Showing 47 changed files with 138 additions and 3 deletions.
Empty file modified .Rbuildignore
100644 → 100755
Empty file.
Empty file modified .github/.gitignore
100644 → 100755
Empty file.
Empty file modified .github/workflows/R-CMD-check.yaml
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: tsmethods
Type: Package
Title: Time Series Methods
Version: 1.0.2
Date: 2024-04-01
Date: 2024-08-23
Authors@R: c(person("Alexios", "Galanos", role = c("aut", "cre","cph"), email = "alexios@4dscape.com"))
Maintainer: Alexios Galanos <alexios@4dscape.com>
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.
Expand All @@ -11,7 +11,7 @@ Imports: methods, zoo, xts, data.table
Encoding: UTF-8
LazyData: true
URL: https://www.nopredict.com/packages/tsmethods, https://github.com/tsmodels/tsmethods
RoxygenNote: 7.3.1
RoxygenNote: 7.3.2
Suggests:
testthat (>= 3.0.0)
Config/testthat/edition: 3
3 changes: 3 additions & 0 deletions NAMESPACE
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ export(tsaggregate)
export(tsbacktest)
export(tsbenchmark)
export(tscalibrate)
export(tscokurt)
export(tsconvert)
export(tsconvolve)
export(tscor)
export(tscoskew)
export(tscov)
export(tsdecompose)
export(tsdiagnose)
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ validated list of `tsmodel.distribution` objects for use in
multivariate models.
* Added method to convert tsmodel.distribution and tsmodel.distribution_list
objects to a long form data table for easier export to databases.
* Added methods for tsconvolve, tscoskew and tscokurt which are used
in the upcoming tsmarch package independent factor conditional density model.

# tsmethods 1.0.1

Expand Down
Empty file modified R/convert.R
100644 → 100755
Empty file.
Empty file modified R/distributions.R
100644 → 100755
Empty file.
58 changes: 58 additions & 0 deletions R/methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -394,3 +394,61 @@ halflife <- function(object, ...)
{
UseMethod("halflife")
}

#' Convolution of Distributions
#'
#' @description Generic method for convolution of conditional distribution.
#' @param object an object.
#' @param ... additional parameters passed to the method.
#' @returns The convolved density.
#' @details The method is meant to apply the Fast Fourier Transform
#' to the characteristic function of a distribution. Applications of this can
#' be found in the Independent Factor Conditional Density Models.
#' @aliases tsconvolve
#' @rdname tsconvolve
#' @export
#'
#
tsconvolve <- function(object, ...)
{
UseMethod("tsconvolve")
}

#' Co-Skewness
#'
#' @description Generic method for the co-skewness of a model.
#' @param object an object.
#' @param ... additional parameters passed to the method.
#' @returns The co-skewness tensor (folded or unfolded).
#' @details The method calculates the conditional co-skewness of a model.
#' Applications of this can be found in the Independent Factor Conditional
#' Density Models.
#' @aliases tscoskew
#' @rdname tscoskew
#' @export
#'
#
tscoskew <- function(object, ...)
{
UseMethod("tscoskew")
}


#' Co-Kurtosis
#'
#' @description Generic method for the co-kurtosis of a model.
#' @param object an object.
#' @param ... additional parameters passed to the method.
#' @returns The co-kurtosis tensor (folded or unfolded).
#' @details The method calculates the conditional co-kurtosis of a model.
#' Applications of this can be found in the Independent Factor Conditional
#' Density Models.
#' @aliases tscokurt
#' @rdname tscokurt
#' @export
#'
#
tscokurt <- function(object, ...)
{
UseMethod("tscokurt")
}
Empty file modified R/multivariate.R
100644 → 100755
Empty file.
Empty file modified R/tsmethods-package.R
100644 → 100755
Empty file.
Empty file modified README.Rmd
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

[![R-CMD-check](https://github.com/tsmodels/tsmethods/workflows/R-CMD-check/badge.svg)](https://github.com/tsmodels/tsmethods/actions)
[![Last-changedate](https://img.shields.io/badge/last%20change-2024--04--27-yellowgreen.svg)](/commits/master)
[![Last-changedate](https://img.shields.io/badge/last%20change-2024--08--23-yellowgreen.svg)](/commits/master)
[![packageversion](https://img.shields.io/badge/Package%20version-1.0.2-orange.svg?style=flat-square)](commits/master)
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/tsmethods)](https://cran.r-project.org/package=tsmethods)

Expand Down
Empty file modified man/distribution_list.Rd
100644 → 100755
Empty file.
Empty file modified man/ensemble_modelspec.Rd
100644 → 100755
Empty file.
Empty file modified man/estimate.Rd
100644 → 100755
Empty file.
Empty file modified man/estimate_ad.Rd
100644 → 100755
Empty file.
Empty file modified man/halflife.Rd
100644 → 100755
Empty file.
Empty file modified man/pit.Rd
100644 → 100755
Empty file.
Empty file modified man/plot.Rd
100644 → 100755
Empty file.
Empty file modified man/tsaggregate.Rd
100644 → 100755
Empty file.
Empty file modified man/tsbacktest.Rd
100644 → 100755
Empty file.
Empty file modified man/tsbenchmark.Rd
100644 → 100755
Empty file.
Empty file modified man/tscalibrate.Rd
100644 → 100755
Empty file.
24 changes: 24 additions & 0 deletions man/tscokurt.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file modified man/tsconvert.Rd
100644 → 100755
Empty file.
Empty file modified man/tsconvert.tsmodel.distribution.Rd
100644 → 100755
Empty file.
24 changes: 24 additions & 0 deletions man/tsconvolve.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file modified man/tscor.Rd
100644 → 100755
Empty file.
24 changes: 24 additions & 0 deletions man/tscoskew.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file modified man/tscov.Rd
100644 → 100755
Empty file.
Empty file modified man/tsdecompose.Rd
100644 → 100755
Empty file.
Empty file modified man/tsdiagnose.Rd
100644 → 100755
Empty file.
Empty file modified man/tsensemble.Rd
100644 → 100755
Empty file.
Empty file modified man/tsequation.Rd
100644 → 100755
Empty file.
Empty file modified man/tsfilter.Rd
100644 → 100755
Empty file.
Empty file modified man/tsgrowth.Rd
100644 → 100755
Empty file.
Empty file modified man/tsmethods-package.Rd
100644 → 100755
Empty file.
Empty file modified man/tsmetrics.Rd
100644 → 100755
Empty file.
Empty file modified man/tsmoments.Rd
100644 → 100755
Empty file.
Empty file modified man/tsprofile.Rd
100644 → 100755
Empty file.
Empty file modified man/tsreport.Rd
100644 → 100755
Empty file.
Empty file modified man/tsspec.Rd
100644 → 100755
Empty file.
Empty file modified man/unconditional.Rd
100644 → 100755
Empty file.
Empty file modified tests/testthat.R
100644 → 100755
Empty file.
Empty file modified tests/testthat/test-ensemble.R
100644 → 100755
Empty file.

0 comments on commit 8de6ab6

Please sign in to comment.