lbp2Feature: Form a row in feature matrix from lbp

Description Usage Arguments Value

View source: R/PSB_functions.R

Description

This function transforms a single lbp matrix into 1 line in the feature matrix

Usage

1
lbp2Feature(lbp, n.feature = 68, label = 1, name = attr(lbp, "name"))

Arguments

lbp

lbp matrix generated by lbp3D function

n.feature

Suggested number of features in the feature matrix. Will be fixed to multiples of 68 (a result of lbp3D algorithm).

label

Label of the sample features. Should be entered as 0 or 1 for non-factorized models.

name

Name of the feature line. Will be used as rowname in feature matrix. Default is file name.

Value

A line of lbp features of the given lbp matrix, with the label as the last element. Also shows the lbp histogram.


ShaoxunLiu/proteinStructureBoost documentation built on Dec. 18, 2021, 1:05 p.m.