Calculate the memory requirement for running PCIT

Share:

Description

This function attempts to determine the amount of computer memory that would be required to run PCIT of a given correlation matrix.

Usage

1
2
	pcitMemoryRequirement(m, units=c("MB", "bytes", "KB", "GB", "TB"),
		nCopies=3)

Arguments

m

- A correlation matrix on which PCIT may be run, OR the number of rows/columns from such a matirx

units

- The units of RAM memory to be use for the returned value

nCopies

- The maximum number of copies of the correlation matrix which PCIT holds at any one time

Author(s)

Nathan S. Watson-Haigh

See Also

maxMatrixSize

Examples

1
2
3
4
5
	m <- matrix(1, 20, 20)
	diag(m) <- 0
	m
	pcitMemoryRequirement(m, "KB")
	pcitMemoryRequirement(10000, "GB")