parameters_estimator module¶
-
class
parameters_estimator.
ParametersEstimator
(trajectories: trajectory.Trajectory, net_graph: network_graph.NetworkGraph)¶ Bases:
object
Has the task of computing the cims of particular node given the trajectories and the net structure in the graph
_net_graph
.- Parameters
trajectories (Trajectory) – the trajectories
net_graph (NetworkGraph) – the net structure
- _single_set_of_cims
the set of cims object that will hold the cims of the node
-
compute_parameters_for_node
(node_id: str) → set_of_cims.SetOfCims¶ Compute the CIMS of the node identified by the label
node_id
.- Parameters
node_id (string) – the node label
- Returns
A SetOfCims object filled with the computed CIMS
- Return type
-
compute_state_res_time_for_node
(node_indx: int, times: numpy.ndarray, trajectory: numpy.ndarray, cols_filter: numpy.ndarray, scalar_indexes_struct: numpy.ndarray, T: numpy.ndarray) → None¶ Compute the state residence times for a node and fill the matrix
T
with the results- Parameters
node_indx (int) – the index of the node
times (numpy.array) – the times deltas vector
trajectory (numpy.ndArray) – the trajectory
cols_filter (numpy.array) – the columns filtering structure
scalar_indexes_struct (numpy.array) – the indexing structure
T (numpy.ndArray) – the state residence times vectors
-
compute_state_transitions_for_a_node
(node_indx: int, trajectory: numpy.ndarray, cols_filter: numpy.ndarray, scalar_indexing: numpy.ndarray, M: numpy.ndarray)¶ Compute the state residence times for a node and fill the matrices
M
with the results.- Parameters
node_indx (int) – the index of the node
trajectory (numpy.ndArray) – the trajectory
cols_filter (numpy.array) – the columns filtering structure
scalar_indexing (numpy.array) – the indexing structure
M (numpy.ndArray) – the state transitions matrices
-
fast_init
(node_id: str) → None¶ Initializes all the necessary structures for the parameters estimation for the node
node_id
.- Parameters
node_id (string) – the node label