~ubuntu-branches/debian/jessie/eso-midas/jessie

« back to all changes in this revision

Viewing changes to contrib/mva/proc/knn.prg

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2014-04-22 14:44:58 UTC
  • Revision ID: package-import@ubuntu.com-20140422144458-okiwi1assxkkiz39
Tags: upstream-13.09pl1.2+dfsg
ImportĀ upstreamĀ versionĀ 13.09pl1.2+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
! @(#)knn.prg   19.1 (ES0-DMD) 02/25/03 13:27:23
 
2
!++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
3
!
 
4
!.IDENTIFICATION
 
5
!
 
6
!   KNN.PRG
 
7
!
 
8
!.AUTHOR
 
9
!
 
10
!   F. Murtagh, ST-ECF, Garching.      Version 1.0; 16 June 1986
 
11
!
 
12
!.PURPOSE
 
13
!
 
14
!   Execute KNNIF.EXE
 
15
!
 
16
!.KEYWORDS
 
17
!
 
18
!   K-Nearest Neighbours Discriminant Analysis,
 
19
!   Multivariate statistics, Pattern recognition.
 
20
!
 
21
!.CALLING SEQUENCE
 
22
!
 
23
! @@ KNN Training_table  No._of_gp.1_members Test_table No._of_NNs
 
24
!
 
25
!.INPUT/OUTPUT
 
26
!
 
27
!   Input training set table name.
 
28
!   Number - first "number" rows of the input training set belong to
 
29
!            group 1; the remainder belong to group 2.
 
30
!   Test set table name.
 
31
!   Number of nearest neighbours (default: 3)
 
32
!
 
33
!-------------------------------------------------------------------
 
34
!
 
35
DEFINE/PARAM P1 ? TABLE "Enter input table"
 
36
DEFINE/PARAM P2 ? NUMBER "Enter no of rows used as training set"
 
37
DEFINE/PARAM P3 ? TABLE "Enter set table name"
 
38
DEFINE/PARAM P4 3 NUMBER "no of nearest neighbours""
 
39
WRITE/KEYW INPUTI/I/1/1 'P2'
 
40
WRITE/KEYW INPUTI/I/2/1 'P4'
 
41
RUN CON_EXE:KNNIF