buildFeatureMatrix: Feature matrix builder

Description Usage Arguments Value

Description

This builds the feature matrix out of flag vectors (internally called function)

Usage

1
2
buildFeatureMatrix(number_of_intervals, number_of_features,
  interval_numbers, feature_numbers, flags)

Arguments

number_of_intervals

The number of intervals

number_of_features

The number of features

interval_numbers

Array of interval numbers (1-based indeces) for flags

feature_numbers

Array of feature numbers (1-based indeces) for flags

flags

Array of +1/-1/0 indicating intervals at which feature durations start/end

Value

A matrix with 'number_of_intervals' rows and 'number_of_features' columns, where features are filled in with 1s according to the flags turning them on/off.


sverchkov/BaselineRegularization documentation built on May 9, 2019, 1:26 p.m.