gpuTtest: T-Test Estimator with a GPU

Description Usage Arguments Value See Also Examples

View source: R/gpuCor.R

Description

Given the number of samples and a Pearson correlation coefficient, this function estimates the t-score on a GPU. If an entry in goodPairs is zero or one then you may get a NaN as the t-test result.

Usage

1
	gpuTtest(goodPairs, coeffs)

Arguments

goodPairs

a vector of positive integer values. Value i represents the number of samples used to calculate the i-th value of the 'coeffs' argument.

coeffs

a vector of floating point values representing Pearson correlation coefficients.

Value

a vector of single precision floating point values. The i-th entry is an estimate of the t-score of the i-th entry of the 'coeffs' argument.

See Also

gpuCor.

Examples

1
2
3
goodPairs <- rpois(10, lambda=5)
coeffs <- runif(10)
gpuTtest(goodPairs, coeffs)

gputools documentation built on May 30, 2017, 1:52 a.m.

Related to gpuTtest in gputools...