extract_tree: Extract sub result from result of the ffw

Description Usage Arguments Value Examples

View source: R/extract_tree.R

Description

Function to performed zoomed analysis of the wavelet screaming output

Usage

1
extract_tree(res, lev_res, thresh)

Arguments

res

Output of Wavelet_screaming.

lev_res

the maximum level of resolution needed, has to be less or equal to the request level of resolution in the Wavelet_screaming.

thresh

Minimal value of the Bayes Factor to defined the a sub region, if missing set as 1.

Value

A vector correpsonding of the sub tree for the zoomed analysis.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## Not run: 

#using res for the ffw exemple


sub_analysis <- function(res, lev_res )
{
 sub <- extract_tree(res,lev_res=lev_res)
 my_pi <- adaptative_EM_Lambda(sub)
 out <-  adaptative_Lambda (my_pi, sub)
 return(out)
}


sub_analysis(res, 6)


## End(Not run)

william-denault/ffw documentation built on Jan. 20, 2021, 8:28 p.m.