View source: R/event_functions_3d.R
get_features_3d | R Documentation |
This function computes event features of 3D events.
get_features_3d(dat.xyz, res.cluster, normal.stats, win_size, tt)
dat.xyz |
The data in a cluster friendly format. The first three columns have |
res.cluster |
Cluster details from |
normal.stats |
The background statistics, output from |
win_size |
The window length of the moving window model. |
tt |
Related to event ages. For example if |
An Nx22x4
array is returned. Here N
is the total number of events extracted in all windows. The second dimension has 30
features and the class label for the supervised
setting. The third dimension has 4
different event ages : tt, 2tt, 3tt, 4tt
.
For example, the element at [10,6,3]
has the 6th feature, of the 10th extracted event when the age of the event is 3tt
. The features are listed below:
|
An identification number for each event. |
|
The number of pixels of each event. |
|
The length of the event. |
|
The width of the event. |
|
The total value of the pixels. |
|
Length to width ratio of event. |
|
x coordinate of event centroid. |
|
y coordinate of event centroid. |
|
z coordinate of event centroid. |
|
Mean value of event pixels. |
|
Standard deviation of event pixels. |
|
Slope of a linear model fitted to the event. |
|
First coefficient of a quadratic model fitted to the event. |
|
Second coefficient of a quadratic model fitted to the event. |
|
Let us denote the 80th percentile of the event pixels value by |
set.seed(1) arr <- array(rnorm(12000),dim=c(40,25,30)) arr[25:33,12:20, 20:23] <- 10 # getting events out <- get_clusters_3d(arr, thres=0.985) mean_sd <- stats_3d(arr[1:20,1:6,1:8]) ftrs <- get_features_3d(out$data, out$cluster$cluster, mean_sd, win_size=40, tt=2 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.