Hello

--- Michael Goffioul <[EMAIL PROTECTED]> wrote:
> src/ann/bindings/tests/octave/

Sorry my carelessness.

>std::copy(&buf[0], &buf[sz], (char*)ptr);

For mingw, it did not crash, perhaps it is a good luck for (perhaps) gcc 
complier.



octave.exe:1> basic
ANN Version 1.1.1
    Points:
        0: -0.297462 0.176102
        1: 0.565538 -0.361496
        2: 0.909313 -0.182785
        3: 0.920712 0.478408
        4: 0.167682 0.0499836
        5: 0.305223 -0.0805835
        6: 0.114973 0.882453
        7: 0.742916 0.16376
        8: 0.0724605 -0.826775
        9: 0.69096 -0.559284
        10: 0.188485 -0.643934
        11: 0.749427 -0.942415
        12: -0.970662 -0.223466
        13: 0.91611 0.879597
        14: 0.927417 -0.382593
        15: -0.711327 0.278713
        16: -0.519172 0.986146
        17: 0.135338 0.924588
        18: -0.0837537 0.61687
        19: 0.0520465 0.896306
    ........Leaf n=1 <13>
    ......Split cd=0 cv=0.452897 lbnd=-0.0216225 hbnd=0.927417
    ............Leaf n=1 <17>
    ..........Split cd=0 cv=0.135338 lbnd=-0.0216225 hbnd=0.452897
    ............Leaf n=1 <19>
    ........Split cd=1 cv=0.882453 lbnd=0.504006 hbnd=0.986146
    ..........Leaf n=1 <6>
    ....Split cd=1 cv=0.504006 lbnd=0.0218655 hbnd=0.986146
    ..........Leaf n=1 <3>
    ........Split cd=1 cv=0.262936 lbnd=0.0218655 hbnd=0.504006
    ..........Leaf n=1 <7>
    ......Split cd=0 cv=0.452897 lbnd=-0.0216225 hbnd=0.927417
    ........Leaf n=1 <4>
    ..Split cd=0 cv=-0.0216225 lbnd=-0.970662 hbnd=0.927417
    ........Leaf n=1 <18>
    ......Split cd=0 cv=-0.496142 lbnd=-0.970662 hbnd=-0.0216225
    ........Leaf n=1 <16>
    ....Split cd=1 cv=0.504006 lbnd=0.0218655 hbnd=0.986146
    ........Leaf n=1 <0>
    ......Split cd=0 cv=-0.496142 lbnd=-0.970662 hbnd=-0.0216225
    ........Leaf n=1 <15>
    Split cd=1 cv=0.0218655 lbnd=-0.942415 hbnd=0.986146
    ..........Leaf n=1 <2>
    ........Split cd=1 cv=-0.219205 lbnd=-0.460275 hbnd=0.0218655
    ............Leaf n=1 <14>
    ..........Split cd=0 cv=0.690157 lbnd=0.452897 hbnd=0.927417
    ............Leaf n=1 <1>
    ......Split cd=0 cv=0.452897 lbnd=-0.0216225 hbnd=0.927417
    ........Leaf n=1 <5>
    ....Split cd=1 cv=-0.460275 lbnd=-0.942415 hbnd=0.0218655
    ..........Leaf n=1 <9>
    ........Split cd=1 cv=-0.701345 lbnd=-0.942415 hbnd=-0.460275
    ..........Leaf n=1 <11>
    ......Split cd=0 cv=0.452897 lbnd=-0.0216225 hbnd=0.927417
    ..........Leaf n=1 <10>
    ........Split cd=1 cv=-0.701345 lbnd=-0.942415 hbnd=-0.460275
    ..........Leaf n=1 <8>
    ..Split cd=0 cv=-0.0216225 lbnd=-0.970662 hbnd=0.927417
    ....Leaf n=1 <12>
ANN Version 1.1.1
    ........Leaf n=1 <13>
    ......Split cd=0 cv=0.452897 lbnd=-0.0216225 hbnd=0.927417
    ............Leaf n=1 <17>
    ..........Split cd=0 cv=0.135338 lbnd=-0.0216225 hbnd=0.452897
    ............Leaf n=1 <19>
    ........Split cd=1 cv=0.882453 lbnd=0.504006 hbnd=0.986146
    ..........Leaf n=1 <6>
    ....Split cd=1 cv=0.504006 lbnd=0.0218655 hbnd=0.986146
    ..........Leaf n=1 <3>
    ........Split cd=1 cv=0.262936 lbnd=0.0218655 hbnd=0.504006
    ..........Leaf n=1 <7>
    ......Split cd=0 cv=0.452897 lbnd=-0.0216225 hbnd=0.927417
    ........Leaf n=1 <4>
    ..Split cd=0 cv=-0.0216225 lbnd=-0.970662 hbnd=0.927417
    ........Leaf n=1 <18>
    ......Split cd=0 cv=-0.496142 lbnd=-0.970662 hbnd=-0.0216225
    ........Leaf n=1 <16>
    ....Split cd=1 cv=0.504006 lbnd=0.0218655 hbnd=0.986146
    ........Leaf n=1 <0>
    ......Split cd=0 cv=-0.496142 lbnd=-0.970662 hbnd=-0.0216225
    ........Leaf n=1 <15>
    Split cd=1 cv=0.0218655 lbnd=-0.942415 hbnd=0.986146
    ..........Leaf n=1 <2>
    ........Split cd=1 cv=-0.219205 lbnd=-0.460275 hbnd=0.0218655
    ............Leaf n=1 <14>
    ..........Split cd=0 cv=0.690157 lbnd=0.452897 hbnd=0.927417
    ............Leaf n=1 <1>
    ......Split cd=0 cv=0.452897 lbnd=-0.0216225 hbnd=0.927417
    ........Leaf n=1 <5>
    ....Split cd=1 cv=-0.460275 lbnd=-0.942415 hbnd=0.0218655
    ..........Leaf n=1 <9>
    ........Split cd=1 cv=-0.701345 lbnd=-0.942415 hbnd=-0.460275
    ..........Leaf n=1 <11>
    ......Split cd=0 cv=0.452897 lbnd=-0.0216225 hbnd=0.927417
    ..........Leaf n=1 <10>
    ........Split cd=1 cv=-0.701345 lbnd=-0.942415 hbnd=-0.460275
    ..........Leaf n=1 <8>
    ..Split cd=0 cv=-0.0216225 lbnd=-0.970662 hbnd=0.927417
    ....Leaf n=1 <12>
#ANN 1.1.1
points 2 20
0 -0.297462 0.176102
1 0.565538 -0.361496
2 0.909313 -0.182785
3 0.920712 0.478408
4 0.167682 0.0499836
5 0.305223 -0.0805835
6 0.114973 0.882453
7 0.742916 0.16376
8 0.0724605 -0.826775
9 0.69096 -0.559284
10 0.188485 -0.643934
11 0.749427 -0.942415
12 -0.970662 -0.223466
13 0.91611 0.879597
14 0.927417 -0.382593
15 -0.711327 0.278713
16 -0.519172 0.986146
17 0.135338 0.924588
18 -0.0837537 0.61687
19 0.0520465 0.896306
tree 2 20 1
-0.970662 -0.942415
0.927417 0.986146
split 1 0.0218655 -0.942415 0.986146
split 0 -0.0216225 -0.970662 0.927417
leaf 1 12
split 1 -0.46027475 -0.942415 0.0218655
split 0 0.45289725 -0.0216225 0.927417
split 1 -0.701344875 -0.942415 -0.46027475
leaf 1 8
leaf 1 10
split 1 -0.701344875 -0.942415 -0.46027475
leaf 1 11
leaf 1 9
split 0 0.45289725 -0.0216225 0.927417
leaf 1 5
split 1 -0.219204625 -0.46027475 0.0218655
split 0 0.690157125 0.45289725 0.927417
leaf 1 1
leaf 1 14
leaf 1 2
split 0 -0.0216225 -0.970662 0.927417
split 1 0.50400575 0.0218655 0.986146
split 0 -0.49614225 -0.970662 -0.0216225
leaf 1 15
leaf 1 0
split 0 -0.49614225 -0.970662 -0.0216225
leaf 1 16
leaf 1 18
split 1 0.50400575 0.0218655 0.986146
split 0 0.45289725 -0.0216225 0.927417
leaf 1 4
split 1 0.262935625 0.0218655 0.50400575
leaf 1 7
leaf 1 3
split 0 0.45289725 -0.0216225 0.927417
split 1 0.882453 0.50400575 0.986146
leaf 1 6
split 0 0.135338 -0.0216225 0.45289725
leaf 1 19
leaf 1 17
leaf 1 13
#ANN 1.1.1
tree 2 20 1
-0.970662 -0.942415
0.927417 0.986146
split 1 0.0218655 -0.942415 0.986146
split 0 -0.0216225 -0.970662 0.927417
leaf 1 12
split 1 -0.46027475 -0.942415 0.0218655
split 0 0.45289725 -0.0216225 0.927417
split 1 -0.701344875 -0.942415 -0.46027475
leaf 1 8
leaf 1 10
split 1 -0.701344875 -0.942415 -0.46027475
leaf 1 11
leaf 1 9
split 0 0.45289725 -0.0216225 0.927417
leaf 1 5
split 1 -0.219204625 -0.46027475 0.0218655
split 0 0.690157125 0.45289725 0.927417
leaf 1 1
leaf 1 14
leaf 1 2
split 0 -0.0216225 -0.970662 0.927417
split 1 0.50400575 0.0218655 0.986146
split 0 -0.49614225 -0.970662 -0.0216225
leaf 1 15
leaf 1 0
split 0 -0.49614225 -0.970662 -0.0216225
leaf 1 16
leaf 1 18
split 1 0.50400575 0.0218655 0.986146
split 0 0.45289725 -0.0216225 0.927417
leaf 1 4
split 1 0.262935625 0.0218655 0.50400575
leaf 1 7
leaf 1 3
split 0 0.45289725 -0.0216225 0.927417
split 1 0.882453 0.50400575 0.986146
leaf 1 6
split 0 0.135338 -0.0216225 0.45289725
leaf 1 19
leaf 1 17
leaf 1 13
ann =

{
  ANN_BD_CENTROID
  ANN_BD_NONE
  ANN_BD_SIMPLE
  ANN_BD_SUGGEST
  ANN_HI
  ANN_IN
  ANN_KD_FAIR
  ANN_KD_MIDPT
  ANN_KD_SL_FAIR
  ANN_KD_SL_MIDPT
  ANN_KD_STD
  ANN_KD_SUGGEST
  ANN_LO
  ANN_OUT
  ANN_exception
  ANN_exception_msg_get (global method)
  ANN_exception_msg_set (global method)
  ANNabort
  ANNbd_tree
  ANNbruteForce
  ANNbruteForce_annkFRSearch (global method)
  ANNbruteForce_annkSearch (global method)
  ANNbruteForce_nPoints (global method)
  ANNbruteForce_theDim (global method)
  ANNbruteForce_thePoints (global method)
  ANNcopyright
  ANNfalse
  ANNkdStats
  ANNkdStats_avg_ar_get (global method)
  ANNkdStats_avg_ar_set (global method)
  ANNkdStats_bkt_size_get (global method)
  ANNkdStats_bkt_size_set (global method)
  ANNkdStats_depth_get (global method)
  ANNkdStats_depth_set (global method)
  ANNkdStats_dim_get (global method)
  ANNkdStats_dim_set (global method)
  ANNkdStats_merge (global method)
  ANNkdStats_n_lf_get (global method)
  ANNkdStats_n_lf_set (global method)
  ANNkdStats_n_pts_get (global method)
  ANNkdStats_n_pts_set (global method)
  ANNkdStats_n_shr_get (global method)
  ANNkdStats_n_shr_set (global method)
  ANNkdStats_n_spl_get (global method)
  ANNkdStats_n_spl_set (global method)
  ANNkdStats_n_tl_get (global method)
  ANNkdStats_n_tl_set (global method)
  ANNkdStats_reset (global method)
  ANNkdStats_sum_ar_get (global method)
  ANNkdStats_sum_ar_set (global method)
  ANNkd_tree
  ANNkd_tree_Dump (global method)
  ANNkd_tree_Print (global method)
  ANNkd_tree_annkFRSearch (global method)
  ANNkd_tree_annkPriSearch (global method)
  ANNkd_tree_annkSearch (global method)
  ANNkd_tree_getStats (global method)
  ANNkd_tree_nPoints (global method)
  ANNkd_tree_theDim (global method)
  ANNkd_tree_thePoints (global method)
  ANNlatestRev
  ANNorthHalfSpace
  ANNorthHalfSpace_cd_get (global method)
  ANNorthHalfSpace_cd_set (global method)
  ANNorthHalfSpace_cv_get (global method)
  ANNorthHalfSpace_cv_set (global method)
  ANNorthHalfSpace_dist (global method)
  ANNorthHalfSpace_in (global method)
  ANNorthHalfSpace_out (global method)
  ANNorthHalfSpace_project (global method)
  ANNorthHalfSpace_sd_get (global method)
  ANNorthHalfSpace_sd_set (global method)
  ANNorthHalfSpace_setLowerBound (global method)
  ANNorthHalfSpace_setUpperBound (global method)
  ANNorthRect
  ANNorthRect_hi_get (global method)
  ANNorthRect_hi_set (global method)
  ANNorthRect_inside (global method)
  ANNorthRect_lo_get (global method)
  ANNorthRect_lo_set (global method)
  ANNpointSet
  ANNpointSet_annkFRSearch (global method)
  ANNpointSet_annkSearch (global method)
  ANNpointSet_nPoints (global method)
  ANNpointSet_theDim (global method)
  ANNpointSet_thePoints (global method)
  ANNsampStat
  ANNsampStat_max (global method)
  ANNsampStat_mean (global method)
  ANNsampStat_min (global method)
  ANNsampStat_reset (global method)
  ANNsampStat_samples (global method)
  ANNsampStat_stdDev (global method)
  ANNtrue
  ANNversion
  ANNversionCmt
  ANNwarn
  annAllocPt (global method)
  annAllocPts (global method)
  annAssignRect (global method)
  annClose (global method)
  annCopyPt (global method)
  annDeallocPt (global method)
  annDeallocPts (global method)
  annDist (global method)
  annError (global method)
  annMaxPtsVisit (global method)
  annPrintPt (global method)
  annPrintStats (global method)
  annResetCounts (global method)
  annResetStats (global method)
  annUpdateStats (global method)
  cvar
  delete_ANN_exception (global method)
  delete_ANNbd_tree (global method)
  delete_ANNbruteForce (global method)
  delete_ANNkdStats (global method)
  delete_ANNkd_tree (global method)
  delete_ANNorthHalfSpace (global method)
  delete_ANNorthRect (global method)
  delete_ANNpointSet (global method)
  delete_ANNsampStat (global method)
  new_ANN_exception (global method)
  new_ANNbd_tree (global method)
  new_ANNbruteForce (global method)
  new_ANNkdStats (global method)
  new_ANNkd_tree (global method)
  new_ANNorthHalfSpace (global method)
  new_ANNorthRect (global method)
  new_ANNsampStat (global method)
}

kd =

{
  ANNkd_tree, ptr = 0x1e6f0e0
  Dump (method)
  Print (method)
  annkFRSearch (method)
  annkPriSearch (method)
  annkSearch (method)
  getStats (method)
  nPoints (method)
  theDim (method)
  thePoints (method)
}

kd =

{
  ANNkd_tree, ptr = 0x238a7f8
  Dump (method)
  Print (method)
  annkFRSearch (method)
  annkPriSearch (method)
  annkSearch (method)
  getStats (method)
  nPoints (method)
  theDim (method)
  thePoints (method)
}

s =

{
  ANNkdStats, ptr = 0x1c60130
  avg_ar (variable)
  bkt_size (variable)
  depth (variable)
  dim (variable)
  merge (method)
  n_lf (variable)
  n_pts (variable)
  n_shr (variable)
  n_spl (variable)
  n_tl (variable)
  reset (method)
  sum_ar (variable)
}

ans =  2
ans =  20
ans =  1
ans =  20
ans = 0
ans =  19
ans = 0
ans =  6
ans =  29.769
ans =  1.4885
nn_idx =

   13    3   17    6   19

dd =

   0.060551   0.309811   0.316857   0.347099   0.421319

nn_idx =

    5    4   10    1    0

dd =

   0.062228   0.072103   0.200449   0.249729   0.297185

nn_idx =

    0   15   18   16   19

dd =

   0.11079   0.12799   0.12996   0.26032   0.39098

nn_idx =

   14    2    1    9    7

dd =

   0.015565   0.022991   0.070649   0.080629   0.231029

nn_idx =

   13    3   17    6   19

dd =

   0.060551   0.309811   0.316857   0.347099   0.421319

nn_idx =

    8   12   10    0    4

dd =

   0.36430   0.37186   0.39110   0.42409   0.60005

nn_idx =

   15   16    0   12   18

dd =

   0.060389   0.346676   0.389211   0.527295   0.582678

nn_idx =

    3   13    7    6   17

dd =

   0.14219   0.15728   0.26661   0.27512   0.27709

nn_idx =

    4    5   18    7    6

dd =

   0.13873   0.21925   0.22048   0.22391   0.28972

nn_idx =

    8   12   10    0   15

dd =

   0.37559   0.44581   0.52633   0.87077   1.04361

nn_idx =

    8   10   12    0    5

dd =

   0.35775   0.55307   0.59551   1.11190   1.28678

--------------------------------------
GANBARE! NIPPON! Win your ticket to Olympic Games 2008.
http://pr.mail.yahoo.co.jp/ganbare-nippon/

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to