action: Generates the outcome of an intervention or observation of a...

Description Usage Arguments Examples

View source: R/action.R

Description

This function computes the shannon entropy of a probability distribution. It requires a second function called propagation.

Usage

1
action(int, graph, br = 0.1, pow = 0.9)

Arguments

int

is the intervention expressed as a vector with 1 as on, -1 as off and zero as free. graph is directed acyclic graph expressed as a directed adjacency matrix br is the background activation rate, defaults to .1 pow is the causal power of the links, defaults to .9

Examples

1
action(c(1,0,0), matrix(c(0,1,0,0,0,0,0,0,0),3,3, byrow=T))

neilbramley/acl_source documentation built on May 29, 2019, 6:53 p.m.