A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://cran.rstudio.com/web/packages/Rcpp/../queuecomputer/../Rcpp/../distops/readme/README.html below:

README

distops

The goal of distops is to provide a set of functions to compute distances between observations in a sample and to perform operations on distance matrices.

Installation

You can install the development version of distops from GitHub with:

Features Package developement

We provide two functions for package developers to help with defining efficient implementation of the dist functions for custom distances. Namely:

Subset operator

Let us compute the Euclidean distance matrix for the iris dataset:

We can subset this matrix using the [ operator. We can either provide the same indices for rows and columns in which case it return another object of class dist:

Or we can provide different indices for rows and columns in which case it returns a dense matrix:

The subsetting operation is fully parallelized using the RcppParallel package. It is also memory efficient as it does not copy the original distance matrix.

Medoid computation

The medoid of a sample is the observation that minimizes the sum of distances to all other observations. The find_medoids() function computes the medoid of a sample for a given distance. It takes advantage of the RcppParallel package to compute the medoid in parallel.

If the memberships argument is provided, it returns the medoid for each cluster.

Future work

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4