Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

hsdar_parallel

hsdar_parallel


Description

Get all functions which support parallel execution. Currently, the parallel backend functions in doMPI and doMC are supported.

Usage

hsdar_parallel()

Details

Parallel execution is performed via the foreach-package. Care is taken that a function will never run in parallel if the calling function is already using multicore processing.

Value

Vector containing supported function names

Author(s)

Lukas Lehnert

Examples

## Not run: 
supported_functions <- hsdar_parallel()
supported_functions

data(spectral_data)

## Example for Windows and other systems where doMPI is available
## Load library
library(doMPI)
## Register number of workers
cl <- startMPIcluster(count = 3)
registerDoMPI(cl)

## Transform speclib using 3 cores
bd <- transformSpeclib(spectral_data)

## Close the cluster (important to get rid of processes)
closeCluster(cl)

## Example for Linux and other systems where doMC is available
## Load library
library(doMC)
## Register number of workers
registerDoMC(3)

## Transform speclib using 3 cores
bd <- transformSpeclib(spectral_data)

## End(Not run)

hsdar

Manage, Analyse and Simulate Hyperspectral Data

v1.0.3
GPL
Authors
Lukas W. Lehnert [cre, aut] (<https://orcid.org/0000-0002-5229-2282>), Hanna Meyer [ctb], Joerg Bendix [ctb]
Initial release
2020-08-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.