Last data update: 2014.03.03

R: length.IBHM
length.IBHMR Documentation

length.IBHM

Description

Returns the number of components in a IBHM model.

Usage

## S3 method for class 'IBHM'
length(x)

Arguments

x

An object inheriting from class "IBHM".

Value

The number of components in the given IBHM model.

See Also

TrainIBHM

Examples

  x.train <-seq(-2,2,length.out=100)
  y.train <-tanh(x.train)
  
  m <- IBHM::TrainIBHM(x.train,y.train)  
  length(m)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(IBHM)
Loading required package: compiler
Loading required package: DEoptim

DEoptim package
Differential Evolution algorithm in R
Authors: D. Ardia, K. Mullen, B. Peterson and J. Ulrich

Loading required package: cmaes
Loading required package: Rcpp
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/IBHM/length.IBHM.Rd_%03d_medium.png", width=480, height=480)
> ### Name: length.IBHM
> ### Title: length.IBHM
> ### Aliases: length.IBHM length
> ### Keywords: ~models ~regression ~nonlinear
> 
> ### ** Examples
> 
>   x.train <-seq(-2,2,length.out=100)
>   y.train <-tanh(x.train)
>   
>   m <- IBHM::TrainIBHM(x.train,y.train)  
Note: no visible binding for global variable '.refClassDef' 
Note: no visible binding for global variable '.refClassDef' 
Note: no visible binding for global variable '.pointer' 
Note: no visible binding for global variable '.pointer' 
Note: no visible binding for global variable '.pointer' 
>   length(m)
[1] 3
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
> 
Note: no visible binding for global variable '.pointer'