binaryOp_m3d: Matrix 3 dimentional product.

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Binary Operator, for sample size (n), vector with size p of gradient stored in (n*p) matrix, transpose of gradient multiple by gradient for (n) points can be obtained by (gradient %m3d% gradient). Result save in (n*p*p) three dimentional array.

Usage

1
  mat1 %m3d%  mat2

Arguments

mat1

n*p matrix, in gradient example n is sample size, p is number of parameters, mat1[i,] is (p) vector of gradient of ith sample.

mat2

p*n matrix.

Details

It is Used to implement gradient product for n sample

Value

Array_{n*p*p} =\nabla_{θ}^T f_i(θ) \nabla_{θ} f_i(θ),i=1,…,n

Author(s)

Hossein Riazoshams, May 2014. Email: riazihosein@gmail.com URL http://www.riazoshams.com/nlr/

References

Riazoshams H, Midi H, and Ghilagaber G, 2018,. Robust Nonlinear Regression, with Application using R, Joh Wiley and Sons.

See Also

%3d*m%, prodVA

Examples

1
2
3
4
5
6
7
8
9
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
"%m3d%"
m1 <- matrix(c(1:4),nrow=2)
m2 <- matrix(c(1:4),nrow=2)
d=m1 %m3d% m2

nlr documentation built on July 31, 2019, 5:09 p.m.

Related to binaryOp_m3d in nlr...