USGS-R / drb-estuary-salinity-ml

Creative Commons Zero v1.0 Universal
0 stars 4 forks source link

Add transfer entropy #63

Closed galengorski closed 2 years ago

galengorski commented 2 years ago

This PR adds to the it_functions.py library. The central function is calcTE which calculates the transfer entropy between source and sink with respect to a time lag chosen using the parameter "shift". Transfer entropy is calculated using the Knuth (2005) formulation (see equation 14). Other functions added are:

galengorski commented 2 years ago

Thanks for the review @jds485 , sorry there were other functions in the PR that weren't related to it_analysis.py but thanks for focusing on that