Signal Scripts: Building Dynamic Histograms

I wrote these two procedures that first dynamically initialize the
necessary data on average amplitude of signals for all patients, and
then dynamically generate a view that computes histograms over the
amplitude data of any chosen signal for all patients and for any chosen
number of classes or bins, so that the results can be further analyzed
using SAP Hana’s built-in data visualization tools or any external tool
connected to SAP Hana.