make_init: Make initial values for parameters.

Description Usage Arguments Value Examples

View source: R/LDS_reconstruction.R

Description

If init is a vector, make it a list of one element. If init is NULL, randomize it. In this case, the function will randomize the initial value by sampling uniformly within the range for each parameters (A in [0, 1], B in [-1, 1], C in [0, 1] and D in [-1, 1]).

Usage

1
make_init(p, q, num.restarts)

Arguments

p

Dimension of u

q

Dimension of v

num.restarts

Number of randomized initial values

Value

A list of initial conditions, each element is an object of class theta.

Examples

1
2
make_init(5, 5, 1)
make_init(5, 5, 2)

ldsr documentation built on May 4, 2020, 5:06 p.m.