get_distributions_single: Get PDF distribution

Description Usage Arguments Value Examples

View source: R/helper_funcs.R

Description

This function retrieves the PDF (Probability Distribution Function) object from the scipy method <scipy.stats._distn_infrastructure.rv_frozen>.

Usage

1
2
3
4
5
6
get_distributions_single(
  matrix_entry,
  distribution_list,
  asymp_stab,
  points = 250
)

Arguments

matrix_entry

Position in the matrix. Example: c(1, 1)

distribution_list

list of scipy distributions

asymp_stab

asymptotic stability interval

points

the number of values in x range

Value

Probability Distribution Function from scipy

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
k <- 1
l <- 1
np <- reticulate::import("numpy")
distributions <- reticulate::py_load_object("distributions.pkl")
single_dist <- get_distributions_single(matrix_entry = c(k,l), 
    distribution_list = distributions, 
    asymp_stab = c(combined$asymptotic_stability_start[k,l], 
    combined$asymptotic_stability_end[k,l]))

## End(Not run)

PressPurt documentation built on Oct. 23, 2020, 8:07 p.m.