fusion-flap / flap

Fusion Library of Analysis Programs
MIT License
11 stars 5 forks source link

Implementing conditional averaging #27

Closed asztalosors closed 4 years ago

asztalosors commented 5 years ago

Conditional averaging should be implemented. The routine should apply requested filtering to input signals. Return the conditional averaged signal bit as well as all the events that contributed to the averaging process.

Point of discussion: Further data processing, such as statistical analysis of all positive events should take place within the same code package or done separately?

thelampire commented 5 years ago

This is a good idea, it should be implemented in flap itself since it was aimed to be a general data analysis toolkit. Assignee?

(I don't have time for it at the moment.)

asztalosors commented 5 years ago

I suppose once I get added to dev. team I can assign myself to it. I'll do the implementation.

gergopokol commented 5 years ago

The routine should be able to output the collection of positive events for external analysis (e.g. time-frequency analysis).

sandorzoletnik commented 5 years ago

If Ors does this it is fine for me, but please come with some proposal after checking what is availabe. At present the following is available: select_intervals: Finds the events and creates a data object containing the (fixed length) intervals around the condition. slice_data can use this data object to cut these intervals from an n-dimensional data object (along a coordinate) and put the data into two dimensions: one across the intervals and one in the intervals. a summing operation in slice_data can average through the intervals to generate the conditionally averaged signal. It can also take minimum, maximum to show the variability. Check out these in test_select_multislice():i n flap_tests.py

I think the above implements conditional averaging on multiple signals. What could be done additionally:

asztalosors commented 5 years ago

I will create a branch from development and implement the requested changes and we can continue the discussion from there.