reparametrize_function_with_proto: Function reparametrization

Description Usage Arguments Examples

Description

Creates a function being a reparametrisation (with simplification) of f1 * g, e.g. f1(g(x))

Usage

1

Arguments

f1

function 1

g

function 2

res.proto

resulting function prototype with NULL body, e.g. function(theta) NULL

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
 reparametrize_function_with_proto(
   function(x) x^2,
   function(y) y^3,
   function(z) NULL
   )
   # function(z) z^6

 reparametrize_function_with_proto(
   function(x) x^2 + 2*x,
   function(y) (y+1)^3,
   function(z) NULL
   )
   # function(z) ((1 + z)^3 + 2) * (1 + z)^3

cezden/ExpFamilyLab documentation built on May 13, 2019, 3:07 p.m.