Package 'awsMethods'

Title: Class and Methods Definitions for Packages 'aws', 'adimpro', 'fmri', 'dwi'
Description: Defines the method extract and provides 'openMP' support as needed in several packages.
Authors: Joerg Polzehl [aut, cre], Felix Anker [ctb]
Maintainer: Joerg Polzehl <[email protected]>
License: GPL (>= 2)
Version: 1.1-1
Built: 2024-11-08 06:22:31 UTC
Source: CRAN

Help Index


Generic function extract

Description

Provides generic function extract currently used in packages aws and dti.

Methods

Method extract is used to extract information from objects defined in packages aws and dti. Here only the generic function is defined. The method usually takes an argument what='vector of characters' defining which information is needed and returns a list with component names corresponding to the entries in what.

signature(x = "ANY")

Generic function risk

Description

Provides generic function risk currently used in package aws.

Methods

Defines a method used in package aws to evaluate the quality of smoothing results. See help in package aws for details.

signature(y = "ANY")

Set the number of cores to use for openMP.

Description

The function sets the number of cores used in openMP parallelization in part of the Fortran code.

Usage

setCores(n, reprt = TRUE)

Arguments

n

number of cores to use. If n is missing the actual number of cores in use is returned.

reprt

Logical, is reprt==TRUE the number of cores in use is reported.

Details

The number of cores is restricted to integers between 1 (default) and the number of available cores.

Value

The function returns the number of cores in use.

Note

This function is a slightly modified version of function setCores in package spMC version 0.2.2 written by Luca Sartore <[email protected]>

Author(s)

Felix Anker ([email protected])

Examples

## Report number of cores available and in use
  setCores()
## Set number of cores used in openMP to minimum of 
## 12 and number of available cores
  setCores(12)