Skip to main content

Algorithms Computational Mathematics I: Spectral Analysis of Stochastic Processes taught by Dr Reinaldo Roberto Rosa at National Institute for Spacial Research (INPE).

Project description

INPE CAPPY239 - Análise Espectral de Processos Estocásticos

Ferramenta desenvolvida para a disciplina CAP 238 Matemática Computacional I - Análise Espectral de Processos Estocásticos, ministrada pelo Dr. Reinaldo Roberto Rosa no programa de Pós Graduação em Computação Aplicada no Instituto Nacional de Pesquisas Espaciais. O módulo possui as seguintes funções:

Instalação

pip install cappy239

Disponível para Python 3.0 ou superior.

Powernoise

A função powernoise gera sinais estocásticos, ruídos 1/fβ. É uma adaptação do código implementado em Matlab pelo Dr. Reinaldo R. Rosa e Dale B. Dalrymple.

Alguns exemplos com 212 valores:

  • White noise:
from cappy239 import powernoise
white_noise = powernoise(beta=0, N=4096)
  • Pink noise:
from cappy239 import powernoise
pink_noise = powernoise(beta=1, N=4096)
  • Red noise:
from cappy239 import powernoise
red_noise = powernoise(beta=2, N=4096)

Por padrão s série temporal está normalizada, caso não queria isso passe o argumento varargin='randpower'.

Mapeamento Quadrático (Logístico)

A função logistic_map gera uma série caótica . Exemplo com 100 valores:

from cappy239 import logistic_map
chaotic_serie = logistic_map(rho=3.85, a0=0.001, n=100)

Referência: https://geoffboeing.com/2015/03/chaos-theory-logistic-map/

Pmodel

A função pmodel é utilizada para gerar séries temporais estacionárias. O código é uma adaptação da implementação em Matlab disponível em http://www2.meteo.uni-bonn.de/staff/venema/themes/surrogates/pmodel/pmodel.m. Alguns exemplos com 212 valores:

  • S8: p=0.52, β=-1.66
from cappy239 import pmodel
kolmogorov = pmodel(noValues=4096, p=0.52, slope=-1.66)
 .' ___  |     / \     |_   __ \|_   __ \|_  _||_  _|/ ___ `./ ____ `..' ____ '. 
/ .'   \_|    / _ \      | |__) | | |__) | \ \  / / |_/___) |`'  __) || (____) | 
| |          / ___ \     |  ___/  |  ___/   \ \/ /   .'____.'_  |__ '.'_.____. | 
\ `.___.'\ _/ /   \ \_  _| |_    _| |_      _|  |_  / /_____| \____) || \____| | 
 `.____ .'|____| |____||_____|  |_____|    |______| |_______|\______.' \______,' 
                                                           By Adriano P. Almeida

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cappy239-0.1.13.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

cappy239-0.1.13-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file cappy239-0.1.13.tar.gz.

File metadata

  • Download URL: cappy239-0.1.13.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for cappy239-0.1.13.tar.gz
Algorithm Hash digest
SHA256 c51049ebcd4970a8ba48bc4cb2a8634a190538c39719d81ad45bb423d60ba47c
MD5 701f39d68ec1e218cb739dd8a01c571a
BLAKE2b-256 1594b0e16d4f969c8f673b0a8f8c5587aedc20282ce2db445dd909c1b0787d08

See more details on using hashes here.

File details

Details for the file cappy239-0.1.13-py3-none-any.whl.

File metadata

  • Download URL: cappy239-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for cappy239-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 74291612603b96ab6d137421fae0dc776513606d15f8f0c7721ea40662002a9c
MD5 0e60a4c4fbda0d9c2ec5ee2b26d43764
BLAKE2b-256 3d48bcb343ecc04c67f98292efd8a85ea5c64b17a13f7ee3a8d446855b63b1fb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page