ok. i will implement the code as you described. 

i think i must download the source from  the adress "git clone 
git://git.savannah.gnu.org/pspp.git" using git. is this the current up-to-date 
source?

How can i submit the changes? Before the PSPP, i submit some packages to cran 
(R 
project) wia ftp, but this is a complete GNU style.

Thanks.

Hakan.



________________________________
From: John Darrington <j...@darrington.wattle.id.au>
To: Mehmet Hakan Satman <mhsat...@yahoo.com>
Cc: John Darrington <j...@darrington.wattle.id.au>; pspp-dev@gnu.org
Sent: Thu, March 10, 2011 2:07:55 PM
Subject: Re: K-Means Clustering

On Thu, Mar 10, 2011 at 03:35:33AM -0800, Mehmet Hakan Satman wrote:
    
    
     Note: If i am not wrong, "implementing such a command in PSPP" means 
making 
the 

     k-means clustering codes be callable using the 
     "QUICK CLUSTER x y  /MISSING=LISTWISE
       /CRITERIA=CLUSTER(2) MXITER(10) CONVERGE(0)
       /METHOD=KMEANS(NOUPDATE)
       /PRINT INITIAL ANOVA CLUSTER DISTAN."
     syntax. is that right?


That's right.  But I would start with something simpler.  Say just
"QUICK CLUSTER x y z".  The syntax parser can be a bit challenging
so keep it simple to start with, and add the options later.

You'll need to write a function of the form:
int cmd_quick_cluster (struct lexer *lexer, struct dataset *ds);
and register it in the file src/language/command.def

I suggest that you look at some of the existing examples to get
an idea of how it works. reliability.c is probably a good example.

    
     also: I have no experience about coding GTK+

The first step will be to get the command written.  You or someone
else can write the GUI for it later.

Good luck.
    
    
          
-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.


      
_______________________________________________
pspp-dev mailing list
pspp-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/pspp-dev

Reply via email to