dbscan | R Documentation |
This function massages the input quaternion time series to apply DBSCAN clustering on them, with the possibility of separating amplitude and phase variability and of choosing the source of variability through which clusters should be searched.
dbscan(x, ...)
## Default S3 method:
dbscan(x, eps, minPts = 5, weights = NULL, borderPoints = TRUE, ...)
## S3 method for class 'qts_sample'
dbscan(
x,
warping_class = c("affine", "dilation", "none", "shift", "srsf"),
centroid_type = "mean",
metric = c("l2", "pearson"),
cluster_on_phase = FALSE,
use_fence = FALSE,
...
)
x |
Either a numeric matrix of data, or an object that can be coerced to such a matrix (such as a numeric vector or a data frame with all numeric columns) or an object of class qts_sample. |
... |
additional arguments are passed on to the fixed-radius nearest
neighbor search algorithm. See |
eps |
size (radius) of the epsilon neighborhood. Can be omitted if
|
minPts |
number of minimum points required in the eps neighborhood for core points (including the point itself). |
weights |
numeric; weights for the data points. Only needed to perform weighted clustering. |
borderPoints |
logical; should border points be assigned to clusters.
The default is |
warping_class |
A string specifying the warping class Choices are
|
centroid_type |
A string specifying the type of centroid to compute.
Choices are |
metric |
A character string specifying the distance measure to be used.
This must be one of |
cluster_on_phase |
A boolean specifying whether clustering should be
based on phase variation or amplitude variation. Defaults to |
use_fence |
A boolean specifying whether the fence algorithm should be
used to robustify the algorithm against outliers. Defaults to |
An object of class stats::kmeans
or stats::hclust
or
dbscan_fast
if the input x
is NOT of class qts_sample
. Otherwise,
an object of class qtsclust
which is effectively a list with four
components:
qts_aligned
: An object of class qts_sample
storing the sample of
aligned QTS;
qts_centers
: A list of objects of class qts
representing the centers
of the clusters;
best_clustering
: An object of class fdacluster::caps
storing the
results of the best k-mean alignment result among all initialization that
were tried.
call_name
: A string storing the name of the function that was used to
produce the clustering structure;
call_args
: A list containing the exact arguments that were passed to
the function call_name
that produced this output.
out <- dbscan(vespa64$igp[1:10])
plot(out)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.