flowstab.scripts.run_cov_integrals

Computes the integral of the random walk covariance matrices. This is done on a coarser temporal grid than the grid used for the slices of the 1st step (run_laplacians_transmats.py). The grid step size is defined by int_length in units of slices. By default, the integral of the covariance will be computed starting and ending from all combinations of the grid steps. Using –only_from_start_and_finish will compute the forward integrals from the first time point until each following grid steps and the backward integrals from the last time point until each previous grid steps. The resolutions (waiting times) are read from the saved inter-event transition matrices. For efficiency, only the first term (the sparse part) of the autocovariance integral is computed and saved. The results are saved in files named {savedir}/{net_name}_tau_w{tau_w}_PT_{initial_grid_point}_to_{final_grid_point}.{ext} It will use sparse-dot-mkl to do multithreaded sparse matrix products, if it is installed.

The file {initial_grid_point}_to_{final_grid_point} contains the autocovariance integral between t1 and t2, where t1 is the start time of int_start and t2 is also the start time of int_stop (also valid when int_start > int_stop).

The value saved is the upper triangular part of:

int_t1^t2 T(t_1,t) P(t)^{-1} T(t_1,t)^T dt

Attributes

all_files

ap

compression

datadir

i

inargs

int_length

int_length

int_list

integral_rtol

intervals

intervals

ncpu

net_name

num_nodes

num_points

num_small_grid_points

only_expm_transmats

only_from_finish

only_from_start

only_from_start_and_finish

only_lin_transmats

only_one_interval

optional

print_interval

print_mem_usage

required

rev_time_list

save_intermediate

savedir

t_s

tau_ws

tau_ws

time_direction

tol

use_expm_transmats

use_expm_transmats

use_lin_transmats

use_lin_transmats

verbose

verbose_sparse_matmul

Functions

load_trans_mat(k_range, tau_w, lin, reverse_time)

loads, computes and returns the transition matrix computed from k_range[0]

main()

worker(ind_start_tau_w)

Module Contents

flowstab.scripts.run_cov_integrals.load_trans_mat(k_range, tau_w, lin, reverse_time)[source]

loads, computes and returns the transition matrix computed from k_range[0] to k_range[-1] and the corresponding time duration.

used to quickly start again an integral computation.

flowstab.scripts.run_cov_integrals.main()[source]
flowstab.scripts.run_cov_integrals.worker(ind_start_tau_w)[source]
flowstab.scripts.run_cov_integrals.all_files[source]
flowstab.scripts.run_cov_integrals.ap[source]
flowstab.scripts.run_cov_integrals.compression = None[source]
flowstab.scripts.run_cov_integrals.datadir[source]
flowstab.scripts.run_cov_integrals.i = 0[source]
flowstab.scripts.run_cov_integrals.inargs[source]
flowstab.scripts.run_cov_integrals.int_length[source]
flowstab.scripts.run_cov_integrals.int_length[source]
flowstab.scripts.run_cov_integrals.int_list[source]
flowstab.scripts.run_cov_integrals.integral_rtol[source]
flowstab.scripts.run_cov_integrals.intervals[source]
flowstab.scripts.run_cov_integrals.intervals[source]
flowstab.scripts.run_cov_integrals.ncpu[source]
flowstab.scripts.run_cov_integrals.net_name[source]
flowstab.scripts.run_cov_integrals.num_nodes = None[source]
flowstab.scripts.run_cov_integrals.num_points[source]
flowstab.scripts.run_cov_integrals.num_small_grid_points[source]
flowstab.scripts.run_cov_integrals.only_expm_transmats[source]
flowstab.scripts.run_cov_integrals.only_from_finish[source]
flowstab.scripts.run_cov_integrals.only_from_start[source]
flowstab.scripts.run_cov_integrals.only_from_start_and_finish[source]
flowstab.scripts.run_cov_integrals.only_lin_transmats[source]
flowstab.scripts.run_cov_integrals.only_one_interval[source]
flowstab.scripts.run_cov_integrals.optional[source]
flowstab.scripts.run_cov_integrals.print_interval[source]
flowstab.scripts.run_cov_integrals.print_mem_usage[source]
flowstab.scripts.run_cov_integrals.required[source]
flowstab.scripts.run_cov_integrals.rev_time_list = [False, True][source]
flowstab.scripts.run_cov_integrals.save_intermediate[source]
flowstab.scripts.run_cov_integrals.savedir[source]
flowstab.scripts.run_cov_integrals.t_s[source]
flowstab.scripts.run_cov_integrals.tau_ws[source]
flowstab.scripts.run_cov_integrals.tau_ws[source]
flowstab.scripts.run_cov_integrals.time_direction[source]
flowstab.scripts.run_cov_integrals.tol[source]
flowstab.scripts.run_cov_integrals.use_expm_transmats = True[source]
flowstab.scripts.run_cov_integrals.use_expm_transmats = False[source]
flowstab.scripts.run_cov_integrals.use_lin_transmats = True[source]
flowstab.scripts.run_cov_integrals.use_lin_transmats = False[source]
flowstab.scripts.run_cov_integrals.verbose[source]
flowstab.scripts.run_cov_integrals.verbose_sparse_matmul[source]