R/AvgIntegralCorrelation.R

Defines functions AvgIntegralCorrelation

Documented in AvgIntegralCorrelation

AvgIntegralCorrelation <-
function(HRVData, Data, m, tau, r) {
  # -------------------------------------
  # Averages Integral Correlation
  # -------------------------------------
  .Deprecated("CalculateSampleEntropy")
	Cmr = IntegralCorrelation(HRVData,Data,m=m,tau=tau,r=r)
	
	VerboseMessage(HRVData$Verbose, 	
	               "Averaging Integral Correlation")
	
	Phi=log(sum(Cmr)/length(Cmr))
	
	VerboseMessage(HRVData$Verbose, 	
	               paste("Average Integral Correlation:", mean(Cmr)))
	
	return(Phi)
}

Try the RHRV package in your browser

Any scripts or data that you put into this service are public.

RHRV documentation built on Jan. 16, 2024, 3:05 a.m.