projects
/
morpheus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Prepare code for GLSMM implementation (generalized least squares)
[morpheus.git]
/
pkg
/
src
/
functions.c
diff --git
a/pkg/src/functions.c
b/pkg/src/functions.c
index
0d632d3
..
42bb134
100644
(file)
--- a/
pkg/src/functions.c
+++ b/
pkg/src/functions.c
@@
-53,3
+53,10
@@
void Moments_M3(double* X, double* Y, int* pn, int* pd, double* M3)
}
}
}
+
+void Compute_Omega(double* X, double* Y, int* pn, int* pd, double* W)
+{
+ // TODO: formula 1/N sum( t(g(Zi,theta)) g(Zi,theta) )
+ // = 1/N sum( t( (XiYi-...) - theta[i] ) ( ... ) )
+ // --> similar to Moments_M2 and M3 above
+}