patchGNU Octave - Patches: patch #10012, [octave forge] (statistics) Add...

 
 

patch #10012: [octave forge] (statistics) Add function clusterdata

Submitter:  None
Submitted:  Tue 05 Jan 2021 03:35:00 PM UTC
   
 
Category:  Forge : new function Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  None Originator Email:  -email is unavailable-
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 25 Jan 2021 07:53:22 PM UTC, comment #2: 

I've fixed a few style thingies here & adapted the call to linkage (had too many arguments):
http://hg.code.sf.net/p/octave/statistics/rev/4d37cfe1aeb1
which gave me an opportunity to add a patch report no. (which I forgot at the initial push).

But looking back I screwed up the function name in the commit message, "cluster" instead" of "clusterdata".)

Anyway, closing report.

Philip Nienhuis <philipnienhuis>
Group Member
Sun 17 Jan 2021 01:39:24 PM UTC, comment #1: 

Pushed here:
http://hg.code.sf.net/p/octave/statistics/rev/18496e6d5d91

status -> Ready for test

Philip Nienhuis <philipnienhuis>
Group Member
Tue 05 Jan 2021 03:35:00 PM UTC, original submission:  

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.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #50661:  clusterdata.patch added by None (5KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-01-25 philipnienhuis StatusReady For Test Done
        Open/ClosedOpen Closed
    2021-01-17 philipnienhuis StatusNone Ready For Test
    2021-01-05 None Attached File- Added clusterdata.patch, #50661

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code