subset_select: Subset selection

View source: R/RcppExports.R

subset_selectR Documentation

Subset selection

Description

Select subsets of two components of ground motions.

Usage

subset_select(data1, data2, fraction, length, time_dt, type_return)

Arguments

data1

One horizontal component of ground motions

data2

Another horizontal component of ground motions

fraction

A factor to specify how much subset will be selected. 0 means select all dataset.

length

The minimum length of two input time sereis, integer type

time_dt

Time step, double type

type_return

Either 1 or 2. It specifies what does this subset_select return. If set as 1, it will return a matirx (length is the length of selected subset, width is 3) for subset. The first row is subset selection for data1, the second row is subset selection for data2, while the third row is subset selection for time. If set as 2, it will return only a double type value, which is threshold value for subset selection

Value

subset_select returns two subsets of data1 and data2, or a threshold value. It depends on type_return.


wltcwpf/RCTC documentation built on March 5, 2023, 11:01 p.m.