[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-patch-tracker] [patch #10012] [octave forge] (statistics) Add fu
From: |
anonymous |
Subject: |
[Octave-patch-tracker] [patch #10012] [octave forge] (statistics) Add function clusterdata |
Date: |
Tue, 5 Jan 2021 10:35:03 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 |
URL:
<https://savannah.gnu.org/patch/?10012>
Summary: [octave forge] (statistics) Add function clusterdata
Project: GNU Octave
Submitted by: None
Submitted on: Tue 05 Jan 2021 03:35:00 PM UTC
Category: Forge : new function
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email: s.guidoni@virgilio.it
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Clusterdata is just a wrapper function for "cluster" and "linkage", so it
requires patch #10009 (for "cluster").
Example included:
>> demo clusterdata
clusterdata example 1:
X = [(randn (10, 2) * 0.25) + 1; (randn (20, 2) * 0.5) - 1];
T = clusterdata (X, "linkage", "ward", "MaxClust", 2);
scatter (X(:,1), X(:,2), 36, T, "filled");
Warning: this one requires a patch to linkage.
The line:
if (nargin == 4) && (strcmp (savememory, "savememory"))
should indeed be:
if (nargin == 5) && (strcmp (savememory, "savememory"))
Because "savememory" must be followed by "on" or "off", so 5 parameters.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Tue 05 Jan 2021 03:35:00 PM UTC Name: clusterdata.patch Size: 5KiB
By: None
<http://savannah.gnu.org/patch/download.php?file_id=50661>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/patch/?10012>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-patch-tracker] [patch #10012] [octave forge] (statistics) Add function clusterdata,
anonymous <=