Skip to contents

This function calculates the probability of each feature as a proportion of total. It sums up all the values in the MIDI matrix, calculates the summary for each column(feature), and finally computes the probability of each feature by dividing the column summary by the total summary.

Usage

get_feature_probs(midi_matrix)

Arguments

midi_matrix

A numeric note by time feature matrix.

Value

A numeric vector containing the probabilities of each feature. The length of the vector is equal to the number of features (columns) in the input MIDI matrix.

Examples

if (FALSE) {
}