Learn R Programming

wavethresh (version 4.7.3)

print.wpstCL: Prints some information about a wpstCL object

Description

Prints basic information about a wpstCL object

Usage

# S3 method for wpstCL
print(x, ...)

Value

Nothing

Arguments

x

wpstCL object to print info about

...

Other arguments

Author

G P Nason

Details

Description says all

See Also

makewpstDO,wpstCLASS

Examples

Run this code
#
# Use BabySS and BabyECG data for this example.
#
# Want to predict future values of BabySS from future values of BabyECG
#
# Build model on first 256 values of both
#
# See example in makewpstDO from which this one originates
#
data(BabyECG)
data(BabySS)
BabyModel <- makewpstDO(timeseries=BabyECG[1:256], groups=BabySS[1:256],
	mincor=0.5)
#
# Now, suppose we get some new data for the BabyECG time series.
# For the purposes of this example, this is just the continuing example
# ie BabyECG[257:512]. We can use our new discriminant model to predict
# new values of BabySS
#
BabySSpred <- wpstCLASS(newTS=BabyECG[257:512], BabyModel)
#
BabySSpred
#wpstCL class object
#Results of applying discriminator to time series
#Components:  BasisMatrix BasisMatrixDM wpstDO PredictedOP PredictedGroups 

Run the code above in your browser using DataLab