From 9fb04e5fe0160962cc12d2d3e01920a881d88aa8 Mon Sep 17 00:00:00 2001
From: Dean Samuel Schmitz <dean.schmitz@hhu.de>
Date: Mon, 18 Jul 2022 22:49:28 +0000
Subject: [PATCH] Update README.md

---
 README.md | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/README.md b/README.md
index 1463c95..b48d4c3 100644
--- a/README.md
+++ b/README.md
@@ -42,3 +42,18 @@ For a list of the functions the BayesianLinearRegression method has go to
 
 [Mlpack BayesianLinearRegression documentation](https://www.mlpack.org/doc/stable/doxygen/classmlpack_1_1regression_1_1BayesianLinearRegression.html)
 
+For Arrays i have added predicates for converting Prolog lists [] to the needed float_array type and when receiving an array also Predicates for converting it to a normal list.
+
+A Matrix is just a long list with the added information how many row it has.
+
+In both cases when using the array in a function the size must also be send, since after sending or receiving it you cant get the length of the array from itself.
+
+for example:
+```
+train :-
+        convert_list_to_float_array([5.1,3.5,1.4,4.9,3.0,1.4,4.7,3.2,1.3,4.6,3.1,1.5],3, array(Xsize, Xrownum, X)),
+        convert_list_to_float_array([0.2,0.2,0.2,0.2], array(Ysize, Y)),
+        train(X,Xsize, Xrownum,Y, Ysize).
+```
+here the longer list representing a Matrix gets convertet into an array X with the row amount, and the smaller list into an array Y.
+And they get used in the foreign function from BayesianLinearRegression that takes an Matrix of points and a vector of targets to train the model.
-- 
GitLab