aboutsummaryrefslogtreecommitdiff
path: root/src/gensvm_init.c
diff options
context:
space:
mode:
authorGertjan van den Burg <burg@ese.eur.nl>2016-10-14 19:00:33 +0200
committerGertjan van den Burg <burg@ese.eur.nl>2016-10-14 19:00:33 +0200
commit0cc025358af341b7e9757e2b9ce5eb0b09af7b2f (patch)
tree343f50cdba91361ddd0a18c554a7cd646d88aff8 /src/gensvm_init.c
parentadd sparse matrices to GenSVM and reorganize update functionality (diff)
downloadgensvm-0cc025358af341b7e9757e2b9ce5eb0b09af7b2f.tar.gz
gensvm-0cc025358af341b7e9757e2b9ce5eb0b09af7b2f.zip
documentation fixes
Diffstat (limited to 'src/gensvm_init.c')
-rw-r--r--src/gensvm_init.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gensvm_init.c b/src/gensvm_init.c
index e0f44c1..8bee73a 100644
--- a/src/gensvm_init.c
+++ b/src/gensvm_init.c
@@ -27,8 +27,14 @@
* significant improvement in the number of iterations necessary
* because the seeded model V is closer to the optimal V.
*
+ * When no seed model is supplied, the rows of V are seeded with random
+ * numbers between the inverse of the minimum and the inverse of the maximum
+ * of the corresponding column of Z. This is done to center the product of the
+ * two in the simplex space.
+ *
* @param[in] from_model GenModel from which to copy V
* @param[in,out] to_model GenModel to which V will be copied
+ * @param[in] data GenData structure with the data
*/
void gensvm_init_V(struct GenModel *from_model,
struct GenModel *to_model, struct GenData *data)