ELIFE-ASU / Inform

A cross platform C library for information analysis of dynamical systems

Home Page:https://elife-asu.github.io/Inform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Effective Information

dglmoore opened this issue · comments

Implement cause, effect and effective information as described by Hoel, Albantakis and Tononi.

Proposed API

EXPORT double inform_effective_info(int const *tpm, int const *intervention, size_t n,
    inform_error *err);

Example Usage

int series[10] = {0,1,1,0,1,0,0,1,0,1}

inform_error err = INFORM_SUCCESS;
int *tpm = inform_tpm(series, 1, 10, 2, NULL, &err);
assert(inform_succeeded(&err));

inform_effective_info(tpm, (double[2]){0.25, 0.75}, 2, &err); // 0.471407
assert(inform_succeeded(&err);