Open cherylcaprina opened 7 years ago
Hi Cheryl,
I would like to use the public Assignments cluster(Matrix m, Properties
props).
You can convert it to an ArrayMatrix instance which will wrap the array, i.e., new ArrayMatrix(array) in your code below.
May I know how should I convert my array into Matrix m? How does the Matrix m structure looks like?
The rows of m each represent a different item to be clustered. The columns are the features.
Hope this helps and let us know if you have more questions.
Thanks, David
On Thu, Mar 9, 2017 at 1:53 AM, cherylcaprina notifications@github.com wrote:
I have a multidimensional array as shown below: int array[][]={ {1, 1, 0, 0, 1, 1}, {1, 1, 1, 1, 1, 2}, {0, 1, 1, 1, 0, 0}, {0, 1, 1, 1, 1, 0}, {1, 1, 0, 1, 1, 1}, {1, 2, 0, 0, 1, 1} }; I would like to use the public Assignments cluster(Matrix m, Properties props). May I know how should I convert my array into Matrix m? How does the Matrix m structure looks like?
Regards, Cheryl.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fozziethebeat/S-Space/issues/74, or mute the thread https://github.com/notifications/unsubscribe-auth/AA7uLWeXe0rPaAluxjmWzX6jDyOEYNn7ks5rj6HNgaJpZM4MXtiJ .
Dear David,
Thanks a lot. I have obtained the matrix from my array and currently I wish to call the method public Assignments cluster(Matrix m, Properties props). May I know what shall I pass for Properties props parameter? I don't understand what's the use of the properties as mentioned in the code's comment. Do you mind to show me an example?
Regards, Cheryl
I have a multidimensional array as shown below: int array[][]={ {1, 1, 0, 0, 1, 1}, {1, 1, 1, 1, 1, 2}, {0, 1, 1, 1, 0, 0}, {0, 1, 1, 1, 1, 0}, {1, 1, 0, 1, 1, 1}, {1, 2, 0, 0, 1, 1} }; I would like to use the public Assignments cluster(Matrix m, Properties props). May I know how should I convert my array into Matrix m? How does the Matrix m structure looks like?
Regards, Cheryl.