used Bastis code for pcca on new data
visChi.m to visualize density function (untested)