toString.ECGdata {ECG}R Documentation

Converts a ECGdata object into a string description

Description

Converts a ECGdata object into a string description for displaying purposes.

Usage

## S3 method for class 'ECGdata'
toString(x, signifDigits=x$input$signifDigits, alpha=x$input$alpha, verbose=FALSE, ...)

Arguments

x

an ECGdata object

signifDigits

a numeric value for the number of significant digits.

alpha

a probability value taken as the significance level for building a symmetric confidence interval assuming a t distribution for
x$frame$used.data.points-1 degrees of freedom.

verbose

a boolean, if FALSE the description of the form
(value, expanded uncertainty) is provided. if TRUE the description is complemented providing:
the estimated coverage factor,
the estimated degrees of freedom,
the estimated coverage probability.

...

additional parameters

Value

a string description of the ECGdata object.

Author(s)

H. Gasca-Aragon

Examples

require(ECG)
X.ref<- list(x=pi/2, u=0)
N<- 1000
d0<- 1-sin(seq(1:(5/2*N))/N*pi-pi*3/4)

set.seed(12345)
d1<- d0+rnorm(5/2*N, 0, 0.01)
dat<- data.frame(x=1:length(d1), 
	y=100*(d1-min(d1))/(max(d1)-min(d1)))

ECGres<- ECGdata(dat)
str.res <- toString(ECGres)
print(str.res)

[Package ECG version 0.5.2 Index]