alglib 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,19 +1,28 @@
1
1
  #!/usr/bin/ruby
2
2
  # -*- ruby -*-
3
-
3
+ MAKEFILE="ext/Makefile.#{RUBY_VERSION}"
4
+ BASEDIR=File.dirname(__FILE__)
4
5
  require 'rubygems'
5
6
  require 'hoe'
6
-
7
+ require 'fileutils'
7
8
  task :default => [:compile]
8
9
  task :compile => ["ext/alglib_ext.so"]
10
+ task :clean do
11
+ FileList.new("ext/**/*.o","ext/**/*.so","ext/Makefile.*").each {|file|
12
+ FileUtils.rm(file)
13
+ }
14
+ end
9
15
 
10
- file "ext/Makefile" => "ext/extconf.rb" do |t|
11
- system %(cd ext && ruby extconf.rb)
16
+ file MAKEFILE => "ext/extconf.rb" do |t|
17
+ Dir.chdir("#{BASEDIR}/ext")
18
+ ruby %{extconf.rb}
19
+ Dir.chdir("#{BASEDIR}")
12
20
  end
13
21
 
14
- file "ext/alglib_ext.so" => Dir.glob("ext/*.i")+["ext/Makefile", "ext/alglib/alglib_util.cpp", "ext/alglib/alglib_util.h"] do |t|
15
- system %(cd ext && rake)
16
-
22
+ file "ext/alglib_ext.so" => Dir.glob("ext/*.i")+[MAKEFILE, "ext/alglib/alglib_util.cpp", "ext/alglib/alglib_util.h"] do |t|
23
+ Dir.chdir "#{BASEDIR}/ext"
24
+ ruby %{-S rake}
25
+ Dir.chdir BASEDIR
17
26
  end
18
27
  require File.dirname(__FILE__)+'/lib/alglib_version.rb'
19
28
  Hoe.spec 'alglib' do
@@ -1,10 +1,9 @@
1
1
  require 'rake/testtask'
2
2
  require 'rake/rdoctask'
3
-
4
-
3
+ MAKEFILE="Makefile.#{RUBY_VERSION}"
5
4
  task :default => [:compile]
6
5
  task :test => ["test.rb"] do |t|
7
- system %(ruby test.rb)
6
+ ruby %(test.rb)
8
7
  end
9
8
  task :compile => ["alglib.so"]
10
9
 
@@ -15,10 +14,10 @@ end
15
14
 
16
15
 
17
16
  cpp=Dir.glob("alglib/*.cpp")+Dir.glob("alglib/*.h")
18
- file "alglib.so"=>cpp + ["Makefile"] do |t|
19
- system %(make)
17
+ file "alglib.so"=>cpp + [MAKEFILE] do |t|
18
+ system %(make -f #{MAKEFILE})
20
19
  end
21
20
 
22
- file "Makefile" => ["extconf.rb"] do |t|
23
- system %(ruby extconf.rb)
21
+ file MAKEFILE => ["extconf.rb"] do |t|
22
+ ruby %( extconf.rb)
24
23
  end
@@ -2,8 +2,8 @@
2
2
  %{
3
3
  #include "ap.h"
4
4
  #include "alglib_util.h"
5
- #include "iostream"
6
-
5
+ #include <iostream>
6
+ #include <cstdio>
7
7
  %}
8
8
 
9
9
  %include "typemaps.i"
@@ -20,5 +20,6 @@
20
20
  %include "correlation.i"
21
21
  %include "correlationtests.i"
22
22
  %include "linreg.i"
23
+ %include "mannwhitneyu.i"
23
24
  %include "logit.i"
24
- %include "pca.i"
25
+ %include "pca.i"
@@ -1,6 +1,6 @@
1
1
  /* ----------------------------------------------------------------------------
2
2
  * This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 1.3.35
3
+ * Version 1.3.36
4
4
  *
5
5
  * This file is not intended to be easily readable and contains a number of
6
6
  * coding conventions designed to improve portability and efficiency. Do not make
@@ -72,6 +72,12 @@ template <typename T> T SwigValueInit() {
72
72
  # endif
73
73
  #endif
74
74
 
75
+ #ifndef SWIG_MSC_UNSUPPRESS_4505
76
+ # if defined(_MSC_VER)
77
+ # pragma warning(disable : 4505) /* unreferenced local function has been removed */
78
+ # endif
79
+ #endif
80
+
75
81
  #ifndef SWIGUNUSEDPARM
76
82
  # ifdef __cplusplus
77
83
  # define SWIGUNUSEDPARM(p)
@@ -175,6 +181,12 @@ template <typename T> T SwigValueInit() {
175
181
  # endif
176
182
  #endif
177
183
 
184
+ #ifndef SWIG_MSC_UNSUPPRESS_4505
185
+ # if defined(_MSC_VER)
186
+ # pragma warning(disable : 4505) /* unreferenced local function has been removed */
187
+ # endif
188
+ #endif
189
+
178
190
  #ifndef SWIGUNUSEDPARM
179
191
  # ifdef __cplusplus
180
192
  # define SWIGUNUSEDPARM(p)
@@ -1804,7 +1816,7 @@ static VALUE mAlglib_ext;
1804
1816
  #define SWIG_RUBY_THREAD_END_BLOCK
1805
1817
 
1806
1818
 
1807
- #define SWIGVERSION 0x010335
1819
+ #define SWIGVERSION 0x010336
1808
1820
  #define SWIG_VERSION SWIGVERSION
1809
1821
 
1810
1822
 
@@ -1817,8 +1829,8 @@ static VALUE mAlglib_ext;
1817
1829
 
1818
1830
  #include "ap.h"
1819
1831
  #include "alglib_util.h"
1820
- #include "iostream"
1821
-
1832
+ #include <iostream>
1833
+ #include <cstdio>
1822
1834
 
1823
1835
 
1824
1836
  #ifdef __cplusplus
@@ -2059,6 +2071,9 @@ VALUE spearmanrankcorrelationsignificance(double r,
2059
2071
  #include "linreg.h"
2060
2072
 
2061
2073
 
2074
+ #include "mannwhitneyu.h"
2075
+
2076
+
2062
2077
  #include "logit.h"
2063
2078
 
2064
2079
 
@@ -2083,8 +2098,8 @@ _wrap_new_Integer1dArray__SWIG_0(int argc, VALUE *argv, VALUE self) {
2083
2098
  if ((argc < 0) || (argc > 0)) {
2084
2099
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
2085
2100
  }
2086
- result = (ap::template_1d_array< int > *)new ap::template_1d_array< int >();DATA_PTR(self) = result;
2087
-
2101
+ result = (ap::template_1d_array< int > *)new ap::template_1d_array< int >();
2102
+ DATA_PTR(self) = result;
2088
2103
  return self;
2089
2104
  fail:
2090
2105
  return Qnil;
@@ -2116,9 +2131,9 @@ _wrap_Integer1dArray_allocate(VALUE self) {
2116
2131
  SWIGINTERN VALUE
2117
2132
  _wrap_new_Integer1dArray__SWIG_1(int argc, VALUE *argv, VALUE self) {
2118
2133
  ap::template_1d_array< int > *arg1 = 0 ;
2119
- ap::template_1d_array< int > *result = 0 ;
2120
2134
  void *argp1 ;
2121
2135
  int res1 = 0 ;
2136
+ ap::template_1d_array< int > *result = 0 ;
2122
2137
 
2123
2138
  if ((argc < 1) || (argc > 1)) {
2124
2139
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
@@ -2131,8 +2146,8 @@ _wrap_new_Integer1dArray__SWIG_1(int argc, VALUE *argv, VALUE self) {
2131
2146
  SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "ap::template_1d_array< int > const &","ap::template_1d_array<(int)>", 1, argv[0]));
2132
2147
  }
2133
2148
  arg1 = reinterpret_cast< ap::template_1d_array< int > * >(argp1);
2134
- result = (ap::template_1d_array< int > *)new ap::template_1d_array< int >((ap::template_1d_array< int > const &)*arg1);DATA_PTR(self) = result;
2135
-
2149
+ result = (ap::template_1d_array< int > *)new ap::template_1d_array< int >((ap::template_1d_array< int > const &)*arg1);
2150
+ DATA_PTR(self) = result;
2136
2151
  return self;
2137
2152
  fail:
2138
2153
  return Qnil;
@@ -2184,11 +2199,11 @@ SWIGINTERN VALUE
2184
2199
  _wrap_Integer1dArray___getitem__(int argc, VALUE *argv, VALUE self) {
2185
2200
  ap::template_1d_array< int > *arg1 = (ap::template_1d_array< int > *) 0 ;
2186
2201
  int arg2 ;
2187
- int result;
2188
2202
  void *argp1 = 0 ;
2189
2203
  int res1 = 0 ;
2190
2204
  int val2 ;
2191
2205
  int ecode2 = 0 ;
2206
+ int result;
2192
2207
  VALUE vresult = Qnil;
2193
2208
 
2194
2209
  if ((argc < 1) || (argc > 1)) {
@@ -2226,13 +2241,13 @@ _wrap_Integer1dArray___setitem__(int argc, VALUE *argv, VALUE self) {
2226
2241
  ap::template_1d_array< int > *arg1 = (ap::template_1d_array< int > *) 0 ;
2227
2242
  int arg2 ;
2228
2243
  int arg3 ;
2229
- int result;
2230
2244
  void *argp1 = 0 ;
2231
2245
  int res1 = 0 ;
2232
2246
  int val2 ;
2233
2247
  int ecode2 = 0 ;
2234
2248
  int val3 ;
2235
2249
  int ecode3 = 0 ;
2250
+ int result;
2236
2251
  VALUE vresult = Qnil;
2237
2252
 
2238
2253
  if ((argc < 2) || (argc > 2)) {
@@ -2273,9 +2288,9 @@ Size or Length of the Integer1dArray.
2273
2288
  SWIGINTERN VALUE
2274
2289
  _wrap_Integer1dArray_size(int argc, VALUE *argv, VALUE self) {
2275
2290
  ap::template_1d_array< int > *arg1 = (ap::template_1d_array< int > *) 0 ;
2276
- int result;
2277
2291
  void *argp1 = 0 ;
2278
2292
  int res1 = 0 ;
2293
+ int result;
2279
2294
  VALUE vresult = Qnil;
2280
2295
 
2281
2296
  if ((argc < 0) || (argc > 0)) {
@@ -2408,9 +2423,9 @@ fail:
2408
2423
  SWIGINTERN VALUE
2409
2424
  _wrap_Integer1dArray_getcontent(int argc, VALUE *argv, VALUE self) {
2410
2425
  ap::template_1d_array< int > *arg1 = (ap::template_1d_array< int > *) 0 ;
2411
- int *result = 0 ;
2412
2426
  void *argp1 = 0 ;
2413
2427
  int res1 = 0 ;
2428
+ int *result = 0 ;
2414
2429
  VALUE vresult = Qnil;
2415
2430
 
2416
2431
  if ((argc < 0) || (argc > 0)) {
@@ -2433,11 +2448,11 @@ SWIGINTERN VALUE
2433
2448
  _wrap_Integer1dArray_getlowbound__SWIG_0(int argc, VALUE *argv, VALUE self) {
2434
2449
  ap::template_1d_array< int > *arg1 = (ap::template_1d_array< int > *) 0 ;
2435
2450
  int arg2 ;
2436
- int result;
2437
2451
  void *argp1 = 0 ;
2438
2452
  int res1 = 0 ;
2439
2453
  int val2 ;
2440
2454
  int ecode2 = 0 ;
2455
+ int result;
2441
2456
  VALUE vresult = Qnil;
2442
2457
 
2443
2458
  if ((argc < 1) || (argc > 1)) {
@@ -2464,9 +2479,9 @@ fail:
2464
2479
  SWIGINTERN VALUE
2465
2480
  _wrap_Integer1dArray_getlowbound__SWIG_1(int argc, VALUE *argv, VALUE self) {
2466
2481
  ap::template_1d_array< int > *arg1 = (ap::template_1d_array< int > *) 0 ;
2467
- int result;
2468
2482
  void *argp1 = 0 ;
2469
2483
  int res1 = 0 ;
2484
+ int result;
2470
2485
  VALUE vresult = Qnil;
2471
2486
 
2472
2487
  if ((argc < 0) || (argc > 0)) {
@@ -2534,11 +2549,11 @@ SWIGINTERN VALUE
2534
2549
  _wrap_Integer1dArray_gethighbound__SWIG_0(int argc, VALUE *argv, VALUE self) {
2535
2550
  ap::template_1d_array< int > *arg1 = (ap::template_1d_array< int > *) 0 ;
2536
2551
  int arg2 ;
2537
- int result;
2538
2552
  void *argp1 = 0 ;
2539
2553
  int res1 = 0 ;
2540
2554
  int val2 ;
2541
2555
  int ecode2 = 0 ;
2556
+ int result;
2542
2557
  VALUE vresult = Qnil;
2543
2558
 
2544
2559
  if ((argc < 1) || (argc > 1)) {
@@ -2565,9 +2580,9 @@ fail:
2565
2580
  SWIGINTERN VALUE
2566
2581
  _wrap_Integer1dArray_gethighbound__SWIG_1(int argc, VALUE *argv, VALUE self) {
2567
2582
  ap::template_1d_array< int > *arg1 = (ap::template_1d_array< int > *) 0 ;
2568
- int result;
2569
2583
  void *argp1 = 0 ;
2570
2584
  int res1 = 0 ;
2585
+ int result;
2571
2586
  VALUE vresult = Qnil;
2572
2587
 
2573
2588
  if ((argc < 0) || (argc > 0)) {
@@ -2640,8 +2655,8 @@ _wrap_new_Real1dArray__SWIG_0(int argc, VALUE *argv, VALUE self) {
2640
2655
  if ((argc < 0) || (argc > 0)) {
2641
2656
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
2642
2657
  }
2643
- result = (ap::template_1d_array< double,true > *)new ap::template_1d_array< double,true >();DATA_PTR(self) = result;
2644
-
2658
+ result = (ap::template_1d_array< double,true > *)new ap::template_1d_array< double,true >();
2659
+ DATA_PTR(self) = result;
2645
2660
  return self;
2646
2661
  fail:
2647
2662
  return Qnil;
@@ -2673,9 +2688,9 @@ _wrap_Real1dArray_allocate(VALUE self) {
2673
2688
  SWIGINTERN VALUE
2674
2689
  _wrap_new_Real1dArray__SWIG_1(int argc, VALUE *argv, VALUE self) {
2675
2690
  ap::template_1d_array< double,true > *arg1 = 0 ;
2676
- ap::template_1d_array< double,true > *result = 0 ;
2677
2691
  void *argp1 ;
2678
2692
  int res1 = 0 ;
2693
+ ap::template_1d_array< double,true > *result = 0 ;
2679
2694
 
2680
2695
  if ((argc < 1) || (argc > 1)) {
2681
2696
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
@@ -2688,8 +2703,8 @@ _wrap_new_Real1dArray__SWIG_1(int argc, VALUE *argv, VALUE self) {
2688
2703
  SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "ap::template_1d_array< double,true > const &","ap::template_1d_array<(double,true)>", 1, argv[0]));
2689
2704
  }
2690
2705
  arg1 = reinterpret_cast< ap::template_1d_array< double,true > * >(argp1);
2691
- result = (ap::template_1d_array< double,true > *)new ap::template_1d_array< double,true >((ap::template_1d_array< double,true > const &)*arg1);DATA_PTR(self) = result;
2692
-
2706
+ result = (ap::template_1d_array< double,true > *)new ap::template_1d_array< double,true >((ap::template_1d_array< double,true > const &)*arg1);
2707
+ DATA_PTR(self) = result;
2693
2708
  return self;
2694
2709
  fail:
2695
2710
  return Qnil;
@@ -2741,11 +2756,11 @@ SWIGINTERN VALUE
2741
2756
  _wrap_Real1dArray___getitem__(int argc, VALUE *argv, VALUE self) {
2742
2757
  ap::template_1d_array< double,true > *arg1 = (ap::template_1d_array< double,true > *) 0 ;
2743
2758
  int arg2 ;
2744
- double result;
2745
2759
  void *argp1 = 0 ;
2746
2760
  int res1 = 0 ;
2747
2761
  int val2 ;
2748
2762
  int ecode2 = 0 ;
2763
+ double result;
2749
2764
  VALUE vresult = Qnil;
2750
2765
 
2751
2766
  if ((argc < 1) || (argc > 1)) {
@@ -2783,13 +2798,13 @@ _wrap_Real1dArray___setitem__(int argc, VALUE *argv, VALUE self) {
2783
2798
  ap::template_1d_array< double,true > *arg1 = (ap::template_1d_array< double,true > *) 0 ;
2784
2799
  int arg2 ;
2785
2800
  double arg3 ;
2786
- double result;
2787
2801
  void *argp1 = 0 ;
2788
2802
  int res1 = 0 ;
2789
2803
  int val2 ;
2790
2804
  int ecode2 = 0 ;
2791
2805
  double val3 ;
2792
2806
  int ecode3 = 0 ;
2807
+ double result;
2793
2808
  VALUE vresult = Qnil;
2794
2809
 
2795
2810
  if ((argc < 2) || (argc > 2)) {
@@ -2830,9 +2845,9 @@ Size or Length of the Real1dArray.
2830
2845
  SWIGINTERN VALUE
2831
2846
  _wrap_Real1dArray_size(int argc, VALUE *argv, VALUE self) {
2832
2847
  ap::template_1d_array< double,true > *arg1 = (ap::template_1d_array< double,true > *) 0 ;
2833
- int result;
2834
2848
  void *argp1 = 0 ;
2835
2849
  int res1 = 0 ;
2850
+ int result;
2836
2851
  VALUE vresult = Qnil;
2837
2852
 
2838
2853
  if ((argc < 0) || (argc > 0)) {
@@ -2965,9 +2980,9 @@ fail:
2965
2980
  SWIGINTERN VALUE
2966
2981
  _wrap_Real1dArray_getcontent(int argc, VALUE *argv, VALUE self) {
2967
2982
  ap::template_1d_array< double,true > *arg1 = (ap::template_1d_array< double,true > *) 0 ;
2968
- double *result = 0 ;
2969
2983
  void *argp1 = 0 ;
2970
2984
  int res1 = 0 ;
2985
+ double *result = 0 ;
2971
2986
  VALUE vresult = Qnil;
2972
2987
 
2973
2988
  if ((argc < 0) || (argc > 0)) {
@@ -2990,11 +3005,11 @@ SWIGINTERN VALUE
2990
3005
  _wrap_Real1dArray_getlowbound__SWIG_0(int argc, VALUE *argv, VALUE self) {
2991
3006
  ap::template_1d_array< double,true > *arg1 = (ap::template_1d_array< double,true > *) 0 ;
2992
3007
  int arg2 ;
2993
- int result;
2994
3008
  void *argp1 = 0 ;
2995
3009
  int res1 = 0 ;
2996
3010
  int val2 ;
2997
3011
  int ecode2 = 0 ;
3012
+ int result;
2998
3013
  VALUE vresult = Qnil;
2999
3014
 
3000
3015
  if ((argc < 1) || (argc > 1)) {
@@ -3021,9 +3036,9 @@ fail:
3021
3036
  SWIGINTERN VALUE
3022
3037
  _wrap_Real1dArray_getlowbound__SWIG_1(int argc, VALUE *argv, VALUE self) {
3023
3038
  ap::template_1d_array< double,true > *arg1 = (ap::template_1d_array< double,true > *) 0 ;
3024
- int result;
3025
3039
  void *argp1 = 0 ;
3026
3040
  int res1 = 0 ;
3041
+ int result;
3027
3042
  VALUE vresult = Qnil;
3028
3043
 
3029
3044
  if ((argc < 0) || (argc > 0)) {
@@ -3091,11 +3106,11 @@ SWIGINTERN VALUE
3091
3106
  _wrap_Real1dArray_gethighbound__SWIG_0(int argc, VALUE *argv, VALUE self) {
3092
3107
  ap::template_1d_array< double,true > *arg1 = (ap::template_1d_array< double,true > *) 0 ;
3093
3108
  int arg2 ;
3094
- int result;
3095
3109
  void *argp1 = 0 ;
3096
3110
  int res1 = 0 ;
3097
3111
  int val2 ;
3098
3112
  int ecode2 = 0 ;
3113
+ int result;
3099
3114
  VALUE vresult = Qnil;
3100
3115
 
3101
3116
  if ((argc < 1) || (argc > 1)) {
@@ -3122,9 +3137,9 @@ fail:
3122
3137
  SWIGINTERN VALUE
3123
3138
  _wrap_Real1dArray_gethighbound__SWIG_1(int argc, VALUE *argv, VALUE self) {
3124
3139
  ap::template_1d_array< double,true > *arg1 = (ap::template_1d_array< double,true > *) 0 ;
3125
- int result;
3126
3140
  void *argp1 = 0 ;
3127
3141
  int res1 = 0 ;
3142
+ int result;
3128
3143
  VALUE vresult = Qnil;
3129
3144
 
3130
3145
  if ((argc < 0) || (argc > 0)) {
@@ -3197,8 +3212,8 @@ _wrap_new_Boolean1dArray__SWIG_0(int argc, VALUE *argv, VALUE self) {
3197
3212
  if ((argc < 0) || (argc > 0)) {
3198
3213
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
3199
3214
  }
3200
- result = (ap::template_1d_array< bool > *)new ap::template_1d_array< bool >();DATA_PTR(self) = result;
3201
-
3215
+ result = (ap::template_1d_array< bool > *)new ap::template_1d_array< bool >();
3216
+ DATA_PTR(self) = result;
3202
3217
  return self;
3203
3218
  fail:
3204
3219
  return Qnil;
@@ -3230,9 +3245,9 @@ _wrap_Boolean1dArray_allocate(VALUE self) {
3230
3245
  SWIGINTERN VALUE
3231
3246
  _wrap_new_Boolean1dArray__SWIG_1(int argc, VALUE *argv, VALUE self) {
3232
3247
  ap::template_1d_array< bool > *arg1 = 0 ;
3233
- ap::template_1d_array< bool > *result = 0 ;
3234
3248
  void *argp1 ;
3235
3249
  int res1 = 0 ;
3250
+ ap::template_1d_array< bool > *result = 0 ;
3236
3251
 
3237
3252
  if ((argc < 1) || (argc > 1)) {
3238
3253
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
@@ -3245,8 +3260,8 @@ _wrap_new_Boolean1dArray__SWIG_1(int argc, VALUE *argv, VALUE self) {
3245
3260
  SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "ap::template_1d_array< bool > const &","ap::template_1d_array<(bool)>", 1, argv[0]));
3246
3261
  }
3247
3262
  arg1 = reinterpret_cast< ap::template_1d_array< bool > * >(argp1);
3248
- result = (ap::template_1d_array< bool > *)new ap::template_1d_array< bool >((ap::template_1d_array< bool > const &)*arg1);DATA_PTR(self) = result;
3249
-
3263
+ result = (ap::template_1d_array< bool > *)new ap::template_1d_array< bool >((ap::template_1d_array< bool > const &)*arg1);
3264
+ DATA_PTR(self) = result;
3250
3265
  return self;
3251
3266
  fail:
3252
3267
  return Qnil;
@@ -3298,11 +3313,11 @@ SWIGINTERN VALUE
3298
3313
  _wrap_Boolean1dArray___getitem__(int argc, VALUE *argv, VALUE self) {
3299
3314
  ap::template_1d_array< bool > *arg1 = (ap::template_1d_array< bool > *) 0 ;
3300
3315
  int arg2 ;
3301
- bool result;
3302
3316
  void *argp1 = 0 ;
3303
3317
  int res1 = 0 ;
3304
3318
  int val2 ;
3305
3319
  int ecode2 = 0 ;
3320
+ bool result;
3306
3321
  VALUE vresult = Qnil;
3307
3322
 
3308
3323
  if ((argc < 1) || (argc > 1)) {
@@ -3340,13 +3355,13 @@ _wrap_Boolean1dArray___setitem__(int argc, VALUE *argv, VALUE self) {
3340
3355
  ap::template_1d_array< bool > *arg1 = (ap::template_1d_array< bool > *) 0 ;
3341
3356
  int arg2 ;
3342
3357
  bool arg3 ;
3343
- bool result;
3344
3358
  void *argp1 = 0 ;
3345
3359
  int res1 = 0 ;
3346
3360
  int val2 ;
3347
3361
  int ecode2 = 0 ;
3348
3362
  bool val3 ;
3349
3363
  int ecode3 = 0 ;
3364
+ bool result;
3350
3365
  VALUE vresult = Qnil;
3351
3366
 
3352
3367
  if ((argc < 2) || (argc > 2)) {
@@ -3387,9 +3402,9 @@ Size or Length of the Boolean1dArray.
3387
3402
  SWIGINTERN VALUE
3388
3403
  _wrap_Boolean1dArray_size(int argc, VALUE *argv, VALUE self) {
3389
3404
  ap::template_1d_array< bool > *arg1 = (ap::template_1d_array< bool > *) 0 ;
3390
- int result;
3391
3405
  void *argp1 = 0 ;
3392
3406
  int res1 = 0 ;
3407
+ int result;
3393
3408
  VALUE vresult = Qnil;
3394
3409
 
3395
3410
  if ((argc < 0) || (argc > 0)) {
@@ -3522,9 +3537,9 @@ fail:
3522
3537
  SWIGINTERN VALUE
3523
3538
  _wrap_Boolean1dArray_getcontent(int argc, VALUE *argv, VALUE self) {
3524
3539
  ap::template_1d_array< bool > *arg1 = (ap::template_1d_array< bool > *) 0 ;
3525
- bool *result = 0 ;
3526
3540
  void *argp1 = 0 ;
3527
3541
  int res1 = 0 ;
3542
+ bool *result = 0 ;
3528
3543
  VALUE vresult = Qnil;
3529
3544
 
3530
3545
  if ((argc < 0) || (argc > 0)) {
@@ -3547,11 +3562,11 @@ SWIGINTERN VALUE
3547
3562
  _wrap_Boolean1dArray_getlowbound__SWIG_0(int argc, VALUE *argv, VALUE self) {
3548
3563
  ap::template_1d_array< bool > *arg1 = (ap::template_1d_array< bool > *) 0 ;
3549
3564
  int arg2 ;
3550
- int result;
3551
3565
  void *argp1 = 0 ;
3552
3566
  int res1 = 0 ;
3553
3567
  int val2 ;
3554
3568
  int ecode2 = 0 ;
3569
+ int result;
3555
3570
  VALUE vresult = Qnil;
3556
3571
 
3557
3572
  if ((argc < 1) || (argc > 1)) {
@@ -3578,9 +3593,9 @@ fail:
3578
3593
  SWIGINTERN VALUE
3579
3594
  _wrap_Boolean1dArray_getlowbound__SWIG_1(int argc, VALUE *argv, VALUE self) {
3580
3595
  ap::template_1d_array< bool > *arg1 = (ap::template_1d_array< bool > *) 0 ;
3581
- int result;
3582
3596
  void *argp1 = 0 ;
3583
3597
  int res1 = 0 ;
3598
+ int result;
3584
3599
  VALUE vresult = Qnil;
3585
3600
 
3586
3601
  if ((argc < 0) || (argc > 0)) {
@@ -3648,11 +3663,11 @@ SWIGINTERN VALUE
3648
3663
  _wrap_Boolean1dArray_gethighbound__SWIG_0(int argc, VALUE *argv, VALUE self) {
3649
3664
  ap::template_1d_array< bool > *arg1 = (ap::template_1d_array< bool > *) 0 ;
3650
3665
  int arg2 ;
3651
- int result;
3652
3666
  void *argp1 = 0 ;
3653
3667
  int res1 = 0 ;
3654
3668
  int val2 ;
3655
3669
  int ecode2 = 0 ;
3670
+ int result;
3656
3671
  VALUE vresult = Qnil;
3657
3672
 
3658
3673
  if ((argc < 1) || (argc > 1)) {
@@ -3679,9 +3694,9 @@ fail:
3679
3694
  SWIGINTERN VALUE
3680
3695
  _wrap_Boolean1dArray_gethighbound__SWIG_1(int argc, VALUE *argv, VALUE self) {
3681
3696
  ap::template_1d_array< bool > *arg1 = (ap::template_1d_array< bool > *) 0 ;
3682
- int result;
3683
3697
  void *argp1 = 0 ;
3684
3698
  int res1 = 0 ;
3699
+ int result;
3685
3700
  VALUE vresult = Qnil;
3686
3701
 
3687
3702
  if ((argc < 0) || (argc > 0)) {
@@ -3754,8 +3769,8 @@ _wrap_new_Integer2dArray__SWIG_0(int argc, VALUE *argv, VALUE self) {
3754
3769
  if ((argc < 0) || (argc > 0)) {
3755
3770
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
3756
3771
  }
3757
- result = (ap::template_2d_array< int > *)new ap::template_2d_array< int >();DATA_PTR(self) = result;
3758
-
3772
+ result = (ap::template_2d_array< int > *)new ap::template_2d_array< int >();
3773
+ DATA_PTR(self) = result;
3759
3774
  return self;
3760
3775
  fail:
3761
3776
  return Qnil;
@@ -3787,9 +3802,9 @@ _wrap_Integer2dArray_allocate(VALUE self) {
3787
3802
  SWIGINTERN VALUE
3788
3803
  _wrap_new_Integer2dArray__SWIG_1(int argc, VALUE *argv, VALUE self) {
3789
3804
  ap::template_2d_array< int > *arg1 = 0 ;
3790
- ap::template_2d_array< int > *result = 0 ;
3791
3805
  void *argp1 ;
3792
3806
  int res1 = 0 ;
3807
+ ap::template_2d_array< int > *result = 0 ;
3793
3808
 
3794
3809
  if ((argc < 1) || (argc > 1)) {
3795
3810
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
@@ -3802,8 +3817,8 @@ _wrap_new_Integer2dArray__SWIG_1(int argc, VALUE *argv, VALUE self) {
3802
3817
  SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "ap::template_2d_array< int > const &","ap::template_2d_array<(int)>", 1, argv[0]));
3803
3818
  }
3804
3819
  arg1 = reinterpret_cast< ap::template_2d_array< int > * >(argp1);
3805
- result = (ap::template_2d_array< int > *)new ap::template_2d_array< int >((ap::template_2d_array< int > const &)*arg1);DATA_PTR(self) = result;
3806
-
3820
+ result = (ap::template_2d_array< int > *)new ap::template_2d_array< int >((ap::template_2d_array< int > const &)*arg1);
3821
+ DATA_PTR(self) = result;
3807
3822
  return self;
3808
3823
  fail:
3809
3824
  return Qnil;
@@ -3847,13 +3862,13 @@ _wrap_Integer2dArray___call__(int argc, VALUE *argv, VALUE self) {
3847
3862
  ap::template_2d_array< int > *arg1 = (ap::template_2d_array< int > *) 0 ;
3848
3863
  int arg2 ;
3849
3864
  int arg3 ;
3850
- int *result = 0 ;
3851
3865
  void *argp1 = 0 ;
3852
3866
  int res1 = 0 ;
3853
3867
  int val2 ;
3854
3868
  int ecode2 = 0 ;
3855
3869
  int val3 ;
3856
3870
  int ecode3 = 0 ;
3871
+ int *result = 0 ;
3857
3872
  VALUE vresult = Qnil;
3858
3873
 
3859
3874
  if ((argc < 2) || (argc > 2)) {
@@ -4040,11 +4055,11 @@ SWIGINTERN VALUE
4040
4055
  _wrap_Integer2dArray_getlowbound(int argc, VALUE *argv, VALUE self) {
4041
4056
  ap::template_2d_array< int > *arg1 = (ap::template_2d_array< int > *) 0 ;
4042
4057
  int arg2 ;
4043
- int result;
4044
4058
  void *argp1 = 0 ;
4045
4059
  int res1 = 0 ;
4046
4060
  int val2 ;
4047
4061
  int ecode2 = 0 ;
4062
+ int result;
4048
4063
  VALUE vresult = Qnil;
4049
4064
 
4050
4065
  if ((argc < 1) || (argc > 1)) {
@@ -4072,11 +4087,11 @@ SWIGINTERN VALUE
4072
4087
  _wrap_Integer2dArray_gethighbound(int argc, VALUE *argv, VALUE self) {
4073
4088
  ap::template_2d_array< int > *arg1 = (ap::template_2d_array< int > *) 0 ;
4074
4089
  int arg2 ;
4075
- int result;
4076
4090
  void *argp1 = 0 ;
4077
4091
  int res1 = 0 ;
4078
4092
  int val2 ;
4079
4093
  int ecode2 = 0 ;
4094
+ int result;
4080
4095
  VALUE vresult = Qnil;
4081
4096
 
4082
4097
  if ((argc < 1) || (argc > 1)) {
@@ -4114,13 +4129,13 @@ _wrap_Integer2dArray___getitem__(int argc, VALUE *argv, VALUE self) {
4114
4129
  ap::template_2d_array< int > *arg1 = (ap::template_2d_array< int > *) 0 ;
4115
4130
  int arg2 ;
4116
4131
  int arg3 ;
4117
- double result;
4118
4132
  void *argp1 = 0 ;
4119
4133
  int res1 = 0 ;
4120
4134
  int val2 ;
4121
4135
  int ecode2 = 0 ;
4122
4136
  int val3 ;
4123
4137
  int ecode3 = 0 ;
4138
+ double result;
4124
4139
  VALUE vresult = Qnil;
4125
4140
 
4126
4141
  if ((argc < 2) || (argc > 2)) {
@@ -4212,8 +4227,8 @@ _wrap_new_Real2dArray__SWIG_0(int argc, VALUE *argv, VALUE self) {
4212
4227
  if ((argc < 0) || (argc > 0)) {
4213
4228
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
4214
4229
  }
4215
- result = (ap::template_2d_array< double,true > *)new ap::template_2d_array< double,true >();DATA_PTR(self) = result;
4216
-
4230
+ result = (ap::template_2d_array< double,true > *)new ap::template_2d_array< double,true >();
4231
+ DATA_PTR(self) = result;
4217
4232
  return self;
4218
4233
  fail:
4219
4234
  return Qnil;
@@ -4245,9 +4260,9 @@ _wrap_Real2dArray_allocate(VALUE self) {
4245
4260
  SWIGINTERN VALUE
4246
4261
  _wrap_new_Real2dArray__SWIG_1(int argc, VALUE *argv, VALUE self) {
4247
4262
  ap::template_2d_array< double,true > *arg1 = 0 ;
4248
- ap::template_2d_array< double,true > *result = 0 ;
4249
4263
  void *argp1 ;
4250
4264
  int res1 = 0 ;
4265
+ ap::template_2d_array< double,true > *result = 0 ;
4251
4266
 
4252
4267
  if ((argc < 1) || (argc > 1)) {
4253
4268
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
@@ -4260,8 +4275,8 @@ _wrap_new_Real2dArray__SWIG_1(int argc, VALUE *argv, VALUE self) {
4260
4275
  SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "ap::template_2d_array< double,true > const &","ap::template_2d_array<(double,true)>", 1, argv[0]));
4261
4276
  }
4262
4277
  arg1 = reinterpret_cast< ap::template_2d_array< double,true > * >(argp1);
4263
- result = (ap::template_2d_array< double,true > *)new ap::template_2d_array< double,true >((ap::template_2d_array< double,true > const &)*arg1);DATA_PTR(self) = result;
4264
-
4278
+ result = (ap::template_2d_array< double,true > *)new ap::template_2d_array< double,true >((ap::template_2d_array< double,true > const &)*arg1);
4279
+ DATA_PTR(self) = result;
4265
4280
  return self;
4266
4281
  fail:
4267
4282
  return Qnil;
@@ -4305,13 +4320,13 @@ _wrap_Real2dArray___call__(int argc, VALUE *argv, VALUE self) {
4305
4320
  ap::template_2d_array< double,true > *arg1 = (ap::template_2d_array< double,true > *) 0 ;
4306
4321
  int arg2 ;
4307
4322
  int arg3 ;
4308
- double *result = 0 ;
4309
4323
  void *argp1 = 0 ;
4310
4324
  int res1 = 0 ;
4311
4325
  int val2 ;
4312
4326
  int ecode2 = 0 ;
4313
4327
  int val3 ;
4314
4328
  int ecode3 = 0 ;
4329
+ double *result = 0 ;
4315
4330
  VALUE vresult = Qnil;
4316
4331
 
4317
4332
  if ((argc < 2) || (argc > 2)) {
@@ -4498,11 +4513,11 @@ SWIGINTERN VALUE
4498
4513
  _wrap_Real2dArray_getlowbound(int argc, VALUE *argv, VALUE self) {
4499
4514
  ap::template_2d_array< double,true > *arg1 = (ap::template_2d_array< double,true > *) 0 ;
4500
4515
  int arg2 ;
4501
- int result;
4502
4516
  void *argp1 = 0 ;
4503
4517
  int res1 = 0 ;
4504
4518
  int val2 ;
4505
4519
  int ecode2 = 0 ;
4520
+ int result;
4506
4521
  VALUE vresult = Qnil;
4507
4522
 
4508
4523
  if ((argc < 1) || (argc > 1)) {
@@ -4530,11 +4545,11 @@ SWIGINTERN VALUE
4530
4545
  _wrap_Real2dArray_gethighbound(int argc, VALUE *argv, VALUE self) {
4531
4546
  ap::template_2d_array< double,true > *arg1 = (ap::template_2d_array< double,true > *) 0 ;
4532
4547
  int arg2 ;
4533
- int result;
4534
4548
  void *argp1 = 0 ;
4535
4549
  int res1 = 0 ;
4536
4550
  int val2 ;
4537
4551
  int ecode2 = 0 ;
4552
+ int result;
4538
4553
  VALUE vresult = Qnil;
4539
4554
 
4540
4555
  if ((argc < 1) || (argc > 1)) {
@@ -4572,13 +4587,13 @@ _wrap_Real2dArray___getitem__(int argc, VALUE *argv, VALUE self) {
4572
4587
  ap::template_2d_array< double,true > *arg1 = (ap::template_2d_array< double,true > *) 0 ;
4573
4588
  int arg2 ;
4574
4589
  int arg3 ;
4575
- double result;
4576
4590
  void *argp1 = 0 ;
4577
4591
  int res1 = 0 ;
4578
4592
  int val2 ;
4579
4593
  int ecode2 = 0 ;
4580
4594
  int val3 ;
4581
4595
  int ecode3 = 0 ;
4596
+ double result;
4582
4597
  VALUE vresult = Qnil;
4583
4598
 
4584
4599
  if ((argc < 2) || (argc > 2)) {
@@ -4664,9 +4679,9 @@ fail:
4664
4679
  SWIGINTERN VALUE
4665
4680
  _wrap_real1d_to_array(int argc, VALUE *argv, VALUE self) {
4666
4681
  ap::real_1d_array *arg1 = (ap::real_1d_array *) 0 ;
4667
- VALUE result;
4668
4682
  void *argp1 = 0 ;
4669
4683
  int res1 = 0 ;
4684
+ VALUE result;
4670
4685
  VALUE vresult = Qnil;
4671
4686
 
4672
4687
  if ((argc < 1) || (argc > 1)) {
@@ -4713,9 +4728,9 @@ _wrap_pearsoncorrelation(int argc, VALUE *argv, VALUE self) {
4713
4728
  ap::real_1d_array *arg1 = 0 ;
4714
4729
  ap::real_1d_array *arg2 = 0 ;
4715
4730
  int arg3 ;
4716
- double result;
4717
4731
  int val3 ;
4718
4732
  int ecode3 = 0 ;
4733
+ double result;
4719
4734
  VALUE vresult = Qnil;
4720
4735
 
4721
4736
  if ((argc < 3) || (argc > 3)) {
@@ -4753,9 +4768,9 @@ _wrap_spearmanrankcorrelation(int argc, VALUE *argv, VALUE self) {
4753
4768
  ap::real_1d_array *arg1 = 0 ;
4754
4769
  ap::real_1d_array *arg2 = 0 ;
4755
4770
  int arg3 ;
4756
- double result;
4757
4771
  int val3 ;
4758
4772
  int ecode3 = 0 ;
4773
+ double result;
4759
4774
  VALUE vresult = Qnil;
4760
4775
 
4761
4776
  if ((argc < 3) || (argc > 3)) {
@@ -4792,11 +4807,11 @@ SWIGINTERN VALUE
4792
4807
  _wrap_pearsoncorrelationsignificance(int argc, VALUE *argv, VALUE self) {
4793
4808
  double arg1 ;
4794
4809
  int arg2 ;
4795
- VALUE result;
4796
4810
  double val1 ;
4797
4811
  int ecode1 = 0 ;
4798
4812
  int val2 ;
4799
4813
  int ecode2 = 0 ;
4814
+ VALUE result;
4800
4815
  VALUE vresult = Qnil;
4801
4816
 
4802
4817
  if ((argc < 2) || (argc > 2)) {
@@ -4824,11 +4839,11 @@ SWIGINTERN VALUE
4824
4839
  _wrap_spearmanrankcorrelationsignificance(int argc, VALUE *argv, VALUE self) {
4825
4840
  double arg1 ;
4826
4841
  int arg2 ;
4827
- VALUE result;
4828
4842
  double val1 ;
4829
4843
  int ecode1 = 0 ;
4830
4844
  int val2 ;
4831
4845
  int ecode2 = 0 ;
4846
+ VALUE result;
4832
4847
  VALUE vresult = Qnil;
4833
4848
 
4834
4849
  if ((argc < 2) || (argc > 2)) {
@@ -4877,7 +4892,6 @@ _wrap_LinearModel_w_set(int argc, VALUE *argv, VALUE self) {
4877
4892
  }
4878
4893
  arg2 = reinterpret_cast< ap::real_1d_array * >(argp2);
4879
4894
  if (arg1) (arg1)->w = *arg2;
4880
-
4881
4895
  return Qnil;
4882
4896
  fail:
4883
4897
  return Qnil;
@@ -4887,9 +4901,9 @@ fail:
4887
4901
  SWIGINTERN VALUE
4888
4902
  _wrap_LinearModel_w_get(int argc, VALUE *argv, VALUE self) {
4889
4903
  linearmodel *arg1 = (linearmodel *) 0 ;
4890
- ap::real_1d_array *result = 0 ;
4891
4904
  void *argp1 = 0 ;
4892
4905
  int res1 = 0 ;
4906
+ ap::real_1d_array *result = 0 ;
4893
4907
  VALUE vresult = Qnil;
4894
4908
 
4895
4909
  if ((argc < 0) || (argc > 0)) {
@@ -4932,8 +4946,8 @@ _wrap_new_LinearModel(int argc, VALUE *argv, VALUE self) {
4932
4946
  if ((argc < 0) || (argc > 0)) {
4933
4947
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
4934
4948
  }
4935
- result = (linearmodel *)new linearmodel();DATA_PTR(self) = result;
4936
-
4949
+ result = (linearmodel *)new linearmodel();
4950
+ DATA_PTR(self) = result;
4937
4951
  return self;
4938
4952
  fail:
4939
4953
  return Qnil;
@@ -4970,7 +4984,6 @@ _wrap_LrReport_c_set(int argc, VALUE *argv, VALUE self) {
4970
4984
  }
4971
4985
  arg2 = reinterpret_cast< ap::real_2d_array * >(argp2);
4972
4986
  if (arg1) (arg1)->c = *arg2;
4973
-
4974
4987
  return Qnil;
4975
4988
  fail:
4976
4989
  return Qnil;
@@ -4980,9 +4993,9 @@ fail:
4980
4993
  SWIGINTERN VALUE
4981
4994
  _wrap_LrReport_c_get(int argc, VALUE *argv, VALUE self) {
4982
4995
  lrreport *arg1 = (lrreport *) 0 ;
4983
- ap::real_2d_array *result = 0 ;
4984
4996
  void *argp1 = 0 ;
4985
4997
  int res1 = 0 ;
4998
+ ap::real_2d_array *result = 0 ;
4986
4999
  VALUE vresult = Qnil;
4987
5000
 
4988
5001
  if ((argc < 0) || (argc > 0)) {
@@ -5024,7 +5037,6 @@ _wrap_LrReport_rmserror_set(int argc, VALUE *argv, VALUE self) {
5024
5037
  }
5025
5038
  arg2 = static_cast< double >(val2);
5026
5039
  if (arg1) (arg1)->rmserror = arg2;
5027
-
5028
5040
  return Qnil;
5029
5041
  fail:
5030
5042
  return Qnil;
@@ -5034,9 +5046,9 @@ fail:
5034
5046
  SWIGINTERN VALUE
5035
5047
  _wrap_LrReport_rmserror_get(int argc, VALUE *argv, VALUE self) {
5036
5048
  lrreport *arg1 = (lrreport *) 0 ;
5037
- double result;
5038
5049
  void *argp1 = 0 ;
5039
5050
  int res1 = 0 ;
5051
+ double result;
5040
5052
  VALUE vresult = Qnil;
5041
5053
 
5042
5054
  if ((argc < 0) || (argc > 0)) {
@@ -5078,7 +5090,6 @@ _wrap_LrReport_avgerror_set(int argc, VALUE *argv, VALUE self) {
5078
5090
  }
5079
5091
  arg2 = static_cast< double >(val2);
5080
5092
  if (arg1) (arg1)->avgerror = arg2;
5081
-
5082
5093
  return Qnil;
5083
5094
  fail:
5084
5095
  return Qnil;
@@ -5088,9 +5099,9 @@ fail:
5088
5099
  SWIGINTERN VALUE
5089
5100
  _wrap_LrReport_avgerror_get(int argc, VALUE *argv, VALUE self) {
5090
5101
  lrreport *arg1 = (lrreport *) 0 ;
5091
- double result;
5092
5102
  void *argp1 = 0 ;
5093
5103
  int res1 = 0 ;
5104
+ double result;
5094
5105
  VALUE vresult = Qnil;
5095
5106
 
5096
5107
  if ((argc < 0) || (argc > 0)) {
@@ -5132,7 +5143,6 @@ _wrap_LrReport_avgrelerror_set(int argc, VALUE *argv, VALUE self) {
5132
5143
  }
5133
5144
  arg2 = static_cast< double >(val2);
5134
5145
  if (arg1) (arg1)->avgrelerror = arg2;
5135
-
5136
5146
  return Qnil;
5137
5147
  fail:
5138
5148
  return Qnil;
@@ -5142,9 +5152,9 @@ fail:
5142
5152
  SWIGINTERN VALUE
5143
5153
  _wrap_LrReport_avgrelerror_get(int argc, VALUE *argv, VALUE self) {
5144
5154
  lrreport *arg1 = (lrreport *) 0 ;
5145
- double result;
5146
5155
  void *argp1 = 0 ;
5147
5156
  int res1 = 0 ;
5157
+ double result;
5148
5158
  VALUE vresult = Qnil;
5149
5159
 
5150
5160
  if ((argc < 0) || (argc > 0)) {
@@ -5186,7 +5196,6 @@ _wrap_LrReport_cvrmserror_set(int argc, VALUE *argv, VALUE self) {
5186
5196
  }
5187
5197
  arg2 = static_cast< double >(val2);
5188
5198
  if (arg1) (arg1)->cvrmserror = arg2;
5189
-
5190
5199
  return Qnil;
5191
5200
  fail:
5192
5201
  return Qnil;
@@ -5196,9 +5205,9 @@ fail:
5196
5205
  SWIGINTERN VALUE
5197
5206
  _wrap_LrReport_cvrmserror_get(int argc, VALUE *argv, VALUE self) {
5198
5207
  lrreport *arg1 = (lrreport *) 0 ;
5199
- double result;
5200
5208
  void *argp1 = 0 ;
5201
5209
  int res1 = 0 ;
5210
+ double result;
5202
5211
  VALUE vresult = Qnil;
5203
5212
 
5204
5213
  if ((argc < 0) || (argc > 0)) {
@@ -5240,7 +5249,6 @@ _wrap_LrReport_cvavgerror_set(int argc, VALUE *argv, VALUE self) {
5240
5249
  }
5241
5250
  arg2 = static_cast< double >(val2);
5242
5251
  if (arg1) (arg1)->cvavgerror = arg2;
5243
-
5244
5252
  return Qnil;
5245
5253
  fail:
5246
5254
  return Qnil;
@@ -5250,9 +5258,9 @@ fail:
5250
5258
  SWIGINTERN VALUE
5251
5259
  _wrap_LrReport_cvavgerror_get(int argc, VALUE *argv, VALUE self) {
5252
5260
  lrreport *arg1 = (lrreport *) 0 ;
5253
- double result;
5254
5261
  void *argp1 = 0 ;
5255
5262
  int res1 = 0 ;
5263
+ double result;
5256
5264
  VALUE vresult = Qnil;
5257
5265
 
5258
5266
  if ((argc < 0) || (argc > 0)) {
@@ -5294,7 +5302,6 @@ _wrap_LrReport_cvavgrelerror_set(int argc, VALUE *argv, VALUE self) {
5294
5302
  }
5295
5303
  arg2 = static_cast< double >(val2);
5296
5304
  if (arg1) (arg1)->cvavgrelerror = arg2;
5297
-
5298
5305
  return Qnil;
5299
5306
  fail:
5300
5307
  return Qnil;
@@ -5304,9 +5311,9 @@ fail:
5304
5311
  SWIGINTERN VALUE
5305
5312
  _wrap_LrReport_cvavgrelerror_get(int argc, VALUE *argv, VALUE self) {
5306
5313
  lrreport *arg1 = (lrreport *) 0 ;
5307
- double result;
5308
5314
  void *argp1 = 0 ;
5309
5315
  int res1 = 0 ;
5316
+ double result;
5310
5317
  VALUE vresult = Qnil;
5311
5318
 
5312
5319
  if ((argc < 0) || (argc > 0)) {
@@ -5348,7 +5355,6 @@ _wrap_LrReport_ncvdefects_set(int argc, VALUE *argv, VALUE self) {
5348
5355
  }
5349
5356
  arg2 = static_cast< int >(val2);
5350
5357
  if (arg1) (arg1)->ncvdefects = arg2;
5351
-
5352
5358
  return Qnil;
5353
5359
  fail:
5354
5360
  return Qnil;
@@ -5358,9 +5364,9 @@ fail:
5358
5364
  SWIGINTERN VALUE
5359
5365
  _wrap_LrReport_ncvdefects_get(int argc, VALUE *argv, VALUE self) {
5360
5366
  lrreport *arg1 = (lrreport *) 0 ;
5361
- int result;
5362
5367
  void *argp1 = 0 ;
5363
5368
  int res1 = 0 ;
5369
+ int result;
5364
5370
  VALUE vresult = Qnil;
5365
5371
 
5366
5372
  if ((argc < 0) || (argc > 0)) {
@@ -5402,7 +5408,6 @@ _wrap_LrReport_cvdefects_set(int argc, VALUE *argv, VALUE self) {
5402
5408
  }
5403
5409
  arg2 = reinterpret_cast< ap::integer_1d_array * >(argp2);
5404
5410
  if (arg1) (arg1)->cvdefects = *arg2;
5405
-
5406
5411
  return Qnil;
5407
5412
  fail:
5408
5413
  return Qnil;
@@ -5412,9 +5417,9 @@ fail:
5412
5417
  SWIGINTERN VALUE
5413
5418
  _wrap_LrReport_cvdefects_get(int argc, VALUE *argv, VALUE self) {
5414
5419
  lrreport *arg1 = (lrreport *) 0 ;
5415
- ap::integer_1d_array *result = 0 ;
5416
5420
  void *argp1 = 0 ;
5417
5421
  int res1 = 0 ;
5422
+ ap::integer_1d_array *result = 0 ;
5418
5423
  VALUE vresult = Qnil;
5419
5424
 
5420
5425
  if ((argc < 0) || (argc > 0)) {
@@ -5457,8 +5462,8 @@ _wrap_new_LrReport(int argc, VALUE *argv, VALUE self) {
5457
5462
  if ((argc < 0) || (argc > 0)) {
5458
5463
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
5459
5464
  }
5460
- result = (lrreport *)new lrreport();DATA_PTR(self) = result;
5461
-
5465
+ result = (lrreport *)new lrreport();
5466
+ DATA_PTR(self) = result;
5462
5467
  return self;
5463
5468
  fail:
5464
5469
  return Qnil;
@@ -5872,9 +5877,9 @@ SWIGINTERN VALUE
5872
5877
  _wrap_lrprocess(int argc, VALUE *argv, VALUE self) {
5873
5878
  linearmodel *arg1 = 0 ;
5874
5879
  ap::real_1d_array *arg2 = 0 ;
5875
- double result;
5876
5880
  void *argp1 ;
5877
5881
  int res1 = 0 ;
5882
+ double result;
5878
5883
  VALUE vresult = Qnil;
5879
5884
 
5880
5885
  if ((argc < 2) || (argc > 2)) {
@@ -5903,6 +5908,96 @@ fail:
5903
5908
  }
5904
5909
 
5905
5910
 
5911
+ SWIGINTERN VALUE
5912
+ _wrap_mannwhitneyutest(int argc, VALUE *argv, VALUE self) {
5913
+ ap::real_1d_array *arg1 = 0 ;
5914
+ int arg2 ;
5915
+ ap::real_1d_array *arg3 = 0 ;
5916
+ int arg4 ;
5917
+ double *arg5 = 0 ;
5918
+ double *arg6 = 0 ;
5919
+ double *arg7 = 0 ;
5920
+ int val2 ;
5921
+ int ecode2 = 0 ;
5922
+ int val4 ;
5923
+ int ecode4 = 0 ;
5924
+ double temp5 ;
5925
+ int res5 = 0 ;
5926
+ double temp6 ;
5927
+ int res6 = 0 ;
5928
+ double temp7 ;
5929
+ int res7 = 0 ;
5930
+
5931
+ if ((argc < 7) || (argc > 7)) {
5932
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 7)",argc); SWIG_fail;
5933
+ }
5934
+ {
5935
+ arg1 = new ap::real_1d_array();
5936
+ arg1->setlength(RARRAY_LEN(argv[0]));
5937
+ for(long i=0;i<RARRAY_LEN(argv[0]);i++) {
5938
+ arg1->operator()(i)=rb_num2dbl(RARRAY_PTR(argv[0])[i]);
5939
+ }
5940
+ }
5941
+ ecode2 = SWIG_AsVal_int(argv[1], &val2);
5942
+ if (!SWIG_IsOK(ecode2)) {
5943
+ SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","mannwhitneyutest", 2, argv[1] ));
5944
+ }
5945
+ arg2 = static_cast< int >(val2);
5946
+ {
5947
+ arg3 = new ap::real_1d_array();
5948
+ arg3->setlength(RARRAY_LEN(argv[2]));
5949
+ for(long i=0;i<RARRAY_LEN(argv[2]);i++) {
5950
+ arg3->operator()(i)=rb_num2dbl(RARRAY_PTR(argv[2])[i]);
5951
+ }
5952
+ }
5953
+ ecode4 = SWIG_AsVal_int(argv[3], &val4);
5954
+ if (!SWIG_IsOK(ecode4)) {
5955
+ SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","mannwhitneyutest", 4, argv[3] ));
5956
+ }
5957
+ arg4 = static_cast< int >(val4);
5958
+ if (!(SWIG_IsOK((res5 = SWIG_ConvertPtr(argv[4],SWIG_as_voidptrptr(&arg5),SWIGTYPE_p_double,0))))) {
5959
+ double val;
5960
+ int ecode = SWIG_AsVal_double(argv[4], &val);
5961
+ if (!SWIG_IsOK(ecode)) {
5962
+ SWIG_exception_fail(SWIG_ArgError(ecode), Ruby_Format_TypeError( "", "double","mannwhitneyutest", 5, argv[4] ));
5963
+ }
5964
+ temp5 = static_cast< double >(val);
5965
+ arg5 = &temp5;
5966
+ res5 = SWIG_AddTmpMask(ecode);
5967
+ }
5968
+ if (!(SWIG_IsOK((res6 = SWIG_ConvertPtr(argv[5],SWIG_as_voidptrptr(&arg6),SWIGTYPE_p_double,0))))) {
5969
+ double val;
5970
+ int ecode = SWIG_AsVal_double(argv[5], &val);
5971
+ if (!SWIG_IsOK(ecode)) {
5972
+ SWIG_exception_fail(SWIG_ArgError(ecode), Ruby_Format_TypeError( "", "double","mannwhitneyutest", 6, argv[5] ));
5973
+ }
5974
+ temp6 = static_cast< double >(val);
5975
+ arg6 = &temp6;
5976
+ res6 = SWIG_AddTmpMask(ecode);
5977
+ }
5978
+ if (!(SWIG_IsOK((res7 = SWIG_ConvertPtr(argv[6],SWIG_as_voidptrptr(&arg7),SWIGTYPE_p_double,0))))) {
5979
+ double val;
5980
+ int ecode = SWIG_AsVal_double(argv[6], &val);
5981
+ if (!SWIG_IsOK(ecode)) {
5982
+ SWIG_exception_fail(SWIG_ArgError(ecode), Ruby_Format_TypeError( "", "double","mannwhitneyutest", 7, argv[6] ));
5983
+ }
5984
+ temp7 = static_cast< double >(val);
5985
+ arg7 = &temp7;
5986
+ res7 = SWIG_AddTmpMask(ecode);
5987
+ }
5988
+ mannwhitneyutest((ap::template_1d_array< double,true > const &)*arg1,arg2,(ap::template_1d_array< double,true > const &)*arg3,arg4,*arg5,*arg6,*arg7);
5989
+ if (SWIG_IsNewObj(res5)) delete arg5;
5990
+ if (SWIG_IsNewObj(res6)) delete arg6;
5991
+ if (SWIG_IsNewObj(res7)) delete arg7;
5992
+ return Qnil;
5993
+ fail:
5994
+ if (SWIG_IsNewObj(res5)) delete arg5;
5995
+ if (SWIG_IsNewObj(res6)) delete arg6;
5996
+ if (SWIG_IsNewObj(res7)) delete arg7;
5997
+ return Qnil;
5998
+ }
5999
+
6000
+
5906
6001
  swig_class cLogitModel;
5907
6002
 
5908
6003
  SWIGINTERN VALUE
@@ -5928,7 +6023,6 @@ _wrap_LogitModel_w_set(int argc, VALUE *argv, VALUE self) {
5928
6023
  }
5929
6024
  arg2 = reinterpret_cast< ap::real_1d_array * >(argp2);
5930
6025
  if (arg1) (arg1)->w = *arg2;
5931
-
5932
6026
  return Qnil;
5933
6027
  fail:
5934
6028
  return Qnil;
@@ -5938,9 +6032,9 @@ fail:
5938
6032
  SWIGINTERN VALUE
5939
6033
  _wrap_LogitModel_w_get(int argc, VALUE *argv, VALUE self) {
5940
6034
  logitmodel *arg1 = (logitmodel *) 0 ;
5941
- ap::real_1d_array *result = 0 ;
5942
6035
  void *argp1 = 0 ;
5943
6036
  int res1 = 0 ;
6037
+ ap::real_1d_array *result = 0 ;
5944
6038
  VALUE vresult = Qnil;
5945
6039
 
5946
6040
  if ((argc < 0) || (argc > 0)) {
@@ -5983,8 +6077,8 @@ _wrap_new_LogitModel(int argc, VALUE *argv, VALUE self) {
5983
6077
  if ((argc < 0) || (argc > 0)) {
5984
6078
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
5985
6079
  }
5986
- result = (logitmodel *)new logitmodel();DATA_PTR(self) = result;
5987
-
6080
+ result = (logitmodel *)new logitmodel();
6081
+ DATA_PTR(self) = result;
5988
6082
  return self;
5989
6083
  fail:
5990
6084
  return Qnil;
@@ -6021,7 +6115,6 @@ _wrap_LogitMcState_brackt_set(int argc, VALUE *argv, VALUE self) {
6021
6115
  }
6022
6116
  arg2 = static_cast< bool >(val2);
6023
6117
  if (arg1) (arg1)->brackt = arg2;
6024
-
6025
6118
  return Qnil;
6026
6119
  fail:
6027
6120
  return Qnil;
@@ -6031,9 +6124,9 @@ fail:
6031
6124
  SWIGINTERN VALUE
6032
6125
  _wrap_LogitMcState_brackt_get(int argc, VALUE *argv, VALUE self) {
6033
6126
  logitmcstate *arg1 = (logitmcstate *) 0 ;
6034
- bool result;
6035
6127
  void *argp1 = 0 ;
6036
6128
  int res1 = 0 ;
6129
+ bool result;
6037
6130
  VALUE vresult = Qnil;
6038
6131
 
6039
6132
  if ((argc < 0) || (argc > 0)) {
@@ -6075,7 +6168,6 @@ _wrap_LogitMcState_stage1_set(int argc, VALUE *argv, VALUE self) {
6075
6168
  }
6076
6169
  arg2 = static_cast< bool >(val2);
6077
6170
  if (arg1) (arg1)->stage1 = arg2;
6078
-
6079
6171
  return Qnil;
6080
6172
  fail:
6081
6173
  return Qnil;
@@ -6085,9 +6177,9 @@ fail:
6085
6177
  SWIGINTERN VALUE
6086
6178
  _wrap_LogitMcState_stage1_get(int argc, VALUE *argv, VALUE self) {
6087
6179
  logitmcstate *arg1 = (logitmcstate *) 0 ;
6088
- bool result;
6089
6180
  void *argp1 = 0 ;
6090
6181
  int res1 = 0 ;
6182
+ bool result;
6091
6183
  VALUE vresult = Qnil;
6092
6184
 
6093
6185
  if ((argc < 0) || (argc > 0)) {
@@ -6129,7 +6221,6 @@ _wrap_LogitMcState_infoc_set(int argc, VALUE *argv, VALUE self) {
6129
6221
  }
6130
6222
  arg2 = static_cast< int >(val2);
6131
6223
  if (arg1) (arg1)->infoc = arg2;
6132
-
6133
6224
  return Qnil;
6134
6225
  fail:
6135
6226
  return Qnil;
@@ -6139,9 +6230,9 @@ fail:
6139
6230
  SWIGINTERN VALUE
6140
6231
  _wrap_LogitMcState_infoc_get(int argc, VALUE *argv, VALUE self) {
6141
6232
  logitmcstate *arg1 = (logitmcstate *) 0 ;
6142
- int result;
6143
6233
  void *argp1 = 0 ;
6144
6234
  int res1 = 0 ;
6235
+ int result;
6145
6236
  VALUE vresult = Qnil;
6146
6237
 
6147
6238
  if ((argc < 0) || (argc > 0)) {
@@ -6183,7 +6274,6 @@ _wrap_LogitMcState_dg_set(int argc, VALUE *argv, VALUE self) {
6183
6274
  }
6184
6275
  arg2 = static_cast< double >(val2);
6185
6276
  if (arg1) (arg1)->dg = arg2;
6186
-
6187
6277
  return Qnil;
6188
6278
  fail:
6189
6279
  return Qnil;
@@ -6193,9 +6283,9 @@ fail:
6193
6283
  SWIGINTERN VALUE
6194
6284
  _wrap_LogitMcState_dg_get(int argc, VALUE *argv, VALUE self) {
6195
6285
  logitmcstate *arg1 = (logitmcstate *) 0 ;
6196
- double result;
6197
6286
  void *argp1 = 0 ;
6198
6287
  int res1 = 0 ;
6288
+ double result;
6199
6289
  VALUE vresult = Qnil;
6200
6290
 
6201
6291
  if ((argc < 0) || (argc > 0)) {
@@ -6237,7 +6327,6 @@ _wrap_LogitMcState_dgm_set(int argc, VALUE *argv, VALUE self) {
6237
6327
  }
6238
6328
  arg2 = static_cast< double >(val2);
6239
6329
  if (arg1) (arg1)->dgm = arg2;
6240
-
6241
6330
  return Qnil;
6242
6331
  fail:
6243
6332
  return Qnil;
@@ -6247,9 +6336,9 @@ fail:
6247
6336
  SWIGINTERN VALUE
6248
6337
  _wrap_LogitMcState_dgm_get(int argc, VALUE *argv, VALUE self) {
6249
6338
  logitmcstate *arg1 = (logitmcstate *) 0 ;
6250
- double result;
6251
6339
  void *argp1 = 0 ;
6252
6340
  int res1 = 0 ;
6341
+ double result;
6253
6342
  VALUE vresult = Qnil;
6254
6343
 
6255
6344
  if ((argc < 0) || (argc > 0)) {
@@ -6291,7 +6380,6 @@ _wrap_LogitMcState_dginit_set(int argc, VALUE *argv, VALUE self) {
6291
6380
  }
6292
6381
  arg2 = static_cast< double >(val2);
6293
6382
  if (arg1) (arg1)->dginit = arg2;
6294
-
6295
6383
  return Qnil;
6296
6384
  fail:
6297
6385
  return Qnil;
@@ -6301,9 +6389,9 @@ fail:
6301
6389
  SWIGINTERN VALUE
6302
6390
  _wrap_LogitMcState_dginit_get(int argc, VALUE *argv, VALUE self) {
6303
6391
  logitmcstate *arg1 = (logitmcstate *) 0 ;
6304
- double result;
6305
6392
  void *argp1 = 0 ;
6306
6393
  int res1 = 0 ;
6394
+ double result;
6307
6395
  VALUE vresult = Qnil;
6308
6396
 
6309
6397
  if ((argc < 0) || (argc > 0)) {
@@ -6345,7 +6433,6 @@ _wrap_LogitMcState_dgtest_set(int argc, VALUE *argv, VALUE self) {
6345
6433
  }
6346
6434
  arg2 = static_cast< double >(val2);
6347
6435
  if (arg1) (arg1)->dgtest = arg2;
6348
-
6349
6436
  return Qnil;
6350
6437
  fail:
6351
6438
  return Qnil;
@@ -6355,9 +6442,9 @@ fail:
6355
6442
  SWIGINTERN VALUE
6356
6443
  _wrap_LogitMcState_dgtest_get(int argc, VALUE *argv, VALUE self) {
6357
6444
  logitmcstate *arg1 = (logitmcstate *) 0 ;
6358
- double result;
6359
6445
  void *argp1 = 0 ;
6360
6446
  int res1 = 0 ;
6447
+ double result;
6361
6448
  VALUE vresult = Qnil;
6362
6449
 
6363
6450
  if ((argc < 0) || (argc > 0)) {
@@ -6399,7 +6486,6 @@ _wrap_LogitMcState_dgx_set(int argc, VALUE *argv, VALUE self) {
6399
6486
  }
6400
6487
  arg2 = static_cast< double >(val2);
6401
6488
  if (arg1) (arg1)->dgx = arg2;
6402
-
6403
6489
  return Qnil;
6404
6490
  fail:
6405
6491
  return Qnil;
@@ -6409,9 +6495,9 @@ fail:
6409
6495
  SWIGINTERN VALUE
6410
6496
  _wrap_LogitMcState_dgx_get(int argc, VALUE *argv, VALUE self) {
6411
6497
  logitmcstate *arg1 = (logitmcstate *) 0 ;
6412
- double result;
6413
6498
  void *argp1 = 0 ;
6414
6499
  int res1 = 0 ;
6500
+ double result;
6415
6501
  VALUE vresult = Qnil;
6416
6502
 
6417
6503
  if ((argc < 0) || (argc > 0)) {
@@ -6453,7 +6539,6 @@ _wrap_LogitMcState_dgxm_set(int argc, VALUE *argv, VALUE self) {
6453
6539
  }
6454
6540
  arg2 = static_cast< double >(val2);
6455
6541
  if (arg1) (arg1)->dgxm = arg2;
6456
-
6457
6542
  return Qnil;
6458
6543
  fail:
6459
6544
  return Qnil;
@@ -6463,9 +6548,9 @@ fail:
6463
6548
  SWIGINTERN VALUE
6464
6549
  _wrap_LogitMcState_dgxm_get(int argc, VALUE *argv, VALUE self) {
6465
6550
  logitmcstate *arg1 = (logitmcstate *) 0 ;
6466
- double result;
6467
6551
  void *argp1 = 0 ;
6468
6552
  int res1 = 0 ;
6553
+ double result;
6469
6554
  VALUE vresult = Qnil;
6470
6555
 
6471
6556
  if ((argc < 0) || (argc > 0)) {
@@ -6507,7 +6592,6 @@ _wrap_LogitMcState_dgy_set(int argc, VALUE *argv, VALUE self) {
6507
6592
  }
6508
6593
  arg2 = static_cast< double >(val2);
6509
6594
  if (arg1) (arg1)->dgy = arg2;
6510
-
6511
6595
  return Qnil;
6512
6596
  fail:
6513
6597
  return Qnil;
@@ -6517,9 +6601,9 @@ fail:
6517
6601
  SWIGINTERN VALUE
6518
6602
  _wrap_LogitMcState_dgy_get(int argc, VALUE *argv, VALUE self) {
6519
6603
  logitmcstate *arg1 = (logitmcstate *) 0 ;
6520
- double result;
6521
6604
  void *argp1 = 0 ;
6522
6605
  int res1 = 0 ;
6606
+ double result;
6523
6607
  VALUE vresult = Qnil;
6524
6608
 
6525
6609
  if ((argc < 0) || (argc > 0)) {
@@ -6561,7 +6645,6 @@ _wrap_LogitMcState_dgym_set(int argc, VALUE *argv, VALUE self) {
6561
6645
  }
6562
6646
  arg2 = static_cast< double >(val2);
6563
6647
  if (arg1) (arg1)->dgym = arg2;
6564
-
6565
6648
  return Qnil;
6566
6649
  fail:
6567
6650
  return Qnil;
@@ -6571,9 +6654,9 @@ fail:
6571
6654
  SWIGINTERN VALUE
6572
6655
  _wrap_LogitMcState_dgym_get(int argc, VALUE *argv, VALUE self) {
6573
6656
  logitmcstate *arg1 = (logitmcstate *) 0 ;
6574
- double result;
6575
6657
  void *argp1 = 0 ;
6576
6658
  int res1 = 0 ;
6659
+ double result;
6577
6660
  VALUE vresult = Qnil;
6578
6661
 
6579
6662
  if ((argc < 0) || (argc > 0)) {
@@ -6615,7 +6698,6 @@ _wrap_LogitMcState_finit_set(int argc, VALUE *argv, VALUE self) {
6615
6698
  }
6616
6699
  arg2 = static_cast< double >(val2);
6617
6700
  if (arg1) (arg1)->finit = arg2;
6618
-
6619
6701
  return Qnil;
6620
6702
  fail:
6621
6703
  return Qnil;
@@ -6625,9 +6707,9 @@ fail:
6625
6707
  SWIGINTERN VALUE
6626
6708
  _wrap_LogitMcState_finit_get(int argc, VALUE *argv, VALUE self) {
6627
6709
  logitmcstate *arg1 = (logitmcstate *) 0 ;
6628
- double result;
6629
6710
  void *argp1 = 0 ;
6630
6711
  int res1 = 0 ;
6712
+ double result;
6631
6713
  VALUE vresult = Qnil;
6632
6714
 
6633
6715
  if ((argc < 0) || (argc > 0)) {
@@ -6669,7 +6751,6 @@ _wrap_LogitMcState_ftest1_set(int argc, VALUE *argv, VALUE self) {
6669
6751
  }
6670
6752
  arg2 = static_cast< double >(val2);
6671
6753
  if (arg1) (arg1)->ftest1 = arg2;
6672
-
6673
6754
  return Qnil;
6674
6755
  fail:
6675
6756
  return Qnil;
@@ -6679,9 +6760,9 @@ fail:
6679
6760
  SWIGINTERN VALUE
6680
6761
  _wrap_LogitMcState_ftest1_get(int argc, VALUE *argv, VALUE self) {
6681
6762
  logitmcstate *arg1 = (logitmcstate *) 0 ;
6682
- double result;
6683
6763
  void *argp1 = 0 ;
6684
6764
  int res1 = 0 ;
6765
+ double result;
6685
6766
  VALUE vresult = Qnil;
6686
6767
 
6687
6768
  if ((argc < 0) || (argc > 0)) {
@@ -6723,7 +6804,6 @@ _wrap_LogitMcState_fm_set(int argc, VALUE *argv, VALUE self) {
6723
6804
  }
6724
6805
  arg2 = static_cast< double >(val2);
6725
6806
  if (arg1) (arg1)->fm = arg2;
6726
-
6727
6807
  return Qnil;
6728
6808
  fail:
6729
6809
  return Qnil;
@@ -6733,9 +6813,9 @@ fail:
6733
6813
  SWIGINTERN VALUE
6734
6814
  _wrap_LogitMcState_fm_get(int argc, VALUE *argv, VALUE self) {
6735
6815
  logitmcstate *arg1 = (logitmcstate *) 0 ;
6736
- double result;
6737
6816
  void *argp1 = 0 ;
6738
6817
  int res1 = 0 ;
6818
+ double result;
6739
6819
  VALUE vresult = Qnil;
6740
6820
 
6741
6821
  if ((argc < 0) || (argc > 0)) {
@@ -6777,7 +6857,6 @@ _wrap_LogitMcState_fx_set(int argc, VALUE *argv, VALUE self) {
6777
6857
  }
6778
6858
  arg2 = static_cast< double >(val2);
6779
6859
  if (arg1) (arg1)->fx = arg2;
6780
-
6781
6860
  return Qnil;
6782
6861
  fail:
6783
6862
  return Qnil;
@@ -6787,9 +6866,9 @@ fail:
6787
6866
  SWIGINTERN VALUE
6788
6867
  _wrap_LogitMcState_fx_get(int argc, VALUE *argv, VALUE self) {
6789
6868
  logitmcstate *arg1 = (logitmcstate *) 0 ;
6790
- double result;
6791
6869
  void *argp1 = 0 ;
6792
6870
  int res1 = 0 ;
6871
+ double result;
6793
6872
  VALUE vresult = Qnil;
6794
6873
 
6795
6874
  if ((argc < 0) || (argc > 0)) {
@@ -6831,7 +6910,6 @@ _wrap_LogitMcState_fxm_set(int argc, VALUE *argv, VALUE self) {
6831
6910
  }
6832
6911
  arg2 = static_cast< double >(val2);
6833
6912
  if (arg1) (arg1)->fxm = arg2;
6834
-
6835
6913
  return Qnil;
6836
6914
  fail:
6837
6915
  return Qnil;
@@ -6841,9 +6919,9 @@ fail:
6841
6919
  SWIGINTERN VALUE
6842
6920
  _wrap_LogitMcState_fxm_get(int argc, VALUE *argv, VALUE self) {
6843
6921
  logitmcstate *arg1 = (logitmcstate *) 0 ;
6844
- double result;
6845
6922
  void *argp1 = 0 ;
6846
6923
  int res1 = 0 ;
6924
+ double result;
6847
6925
  VALUE vresult = Qnil;
6848
6926
 
6849
6927
  if ((argc < 0) || (argc > 0)) {
@@ -6885,7 +6963,6 @@ _wrap_LogitMcState_fy_set(int argc, VALUE *argv, VALUE self) {
6885
6963
  }
6886
6964
  arg2 = static_cast< double >(val2);
6887
6965
  if (arg1) (arg1)->fy = arg2;
6888
-
6889
6966
  return Qnil;
6890
6967
  fail:
6891
6968
  return Qnil;
@@ -6895,9 +6972,9 @@ fail:
6895
6972
  SWIGINTERN VALUE
6896
6973
  _wrap_LogitMcState_fy_get(int argc, VALUE *argv, VALUE self) {
6897
6974
  logitmcstate *arg1 = (logitmcstate *) 0 ;
6898
- double result;
6899
6975
  void *argp1 = 0 ;
6900
6976
  int res1 = 0 ;
6977
+ double result;
6901
6978
  VALUE vresult = Qnil;
6902
6979
 
6903
6980
  if ((argc < 0) || (argc > 0)) {
@@ -6939,7 +7016,6 @@ _wrap_LogitMcState_fym_set(int argc, VALUE *argv, VALUE self) {
6939
7016
  }
6940
7017
  arg2 = static_cast< double >(val2);
6941
7018
  if (arg1) (arg1)->fym = arg2;
6942
-
6943
7019
  return Qnil;
6944
7020
  fail:
6945
7021
  return Qnil;
@@ -6949,9 +7025,9 @@ fail:
6949
7025
  SWIGINTERN VALUE
6950
7026
  _wrap_LogitMcState_fym_get(int argc, VALUE *argv, VALUE self) {
6951
7027
  logitmcstate *arg1 = (logitmcstate *) 0 ;
6952
- double result;
6953
7028
  void *argp1 = 0 ;
6954
7029
  int res1 = 0 ;
7030
+ double result;
6955
7031
  VALUE vresult = Qnil;
6956
7032
 
6957
7033
  if ((argc < 0) || (argc > 0)) {
@@ -6993,7 +7069,6 @@ _wrap_LogitMcState_stx_set(int argc, VALUE *argv, VALUE self) {
6993
7069
  }
6994
7070
  arg2 = static_cast< double >(val2);
6995
7071
  if (arg1) (arg1)->stx = arg2;
6996
-
6997
7072
  return Qnil;
6998
7073
  fail:
6999
7074
  return Qnil;
@@ -7003,9 +7078,9 @@ fail:
7003
7078
  SWIGINTERN VALUE
7004
7079
  _wrap_LogitMcState_stx_get(int argc, VALUE *argv, VALUE self) {
7005
7080
  logitmcstate *arg1 = (logitmcstate *) 0 ;
7006
- double result;
7007
7081
  void *argp1 = 0 ;
7008
7082
  int res1 = 0 ;
7083
+ double result;
7009
7084
  VALUE vresult = Qnil;
7010
7085
 
7011
7086
  if ((argc < 0) || (argc > 0)) {
@@ -7047,7 +7122,6 @@ _wrap_LogitMcState_sty_set(int argc, VALUE *argv, VALUE self) {
7047
7122
  }
7048
7123
  arg2 = static_cast< double >(val2);
7049
7124
  if (arg1) (arg1)->sty = arg2;
7050
-
7051
7125
  return Qnil;
7052
7126
  fail:
7053
7127
  return Qnil;
@@ -7057,9 +7131,9 @@ fail:
7057
7131
  SWIGINTERN VALUE
7058
7132
  _wrap_LogitMcState_sty_get(int argc, VALUE *argv, VALUE self) {
7059
7133
  logitmcstate *arg1 = (logitmcstate *) 0 ;
7060
- double result;
7061
7134
  void *argp1 = 0 ;
7062
7135
  int res1 = 0 ;
7136
+ double result;
7063
7137
  VALUE vresult = Qnil;
7064
7138
 
7065
7139
  if ((argc < 0) || (argc > 0)) {
@@ -7101,7 +7175,6 @@ _wrap_LogitMcState_stmin_set(int argc, VALUE *argv, VALUE self) {
7101
7175
  }
7102
7176
  arg2 = static_cast< double >(val2);
7103
7177
  if (arg1) (arg1)->stmin = arg2;
7104
-
7105
7178
  return Qnil;
7106
7179
  fail:
7107
7180
  return Qnil;
@@ -7111,9 +7184,9 @@ fail:
7111
7184
  SWIGINTERN VALUE
7112
7185
  _wrap_LogitMcState_stmin_get(int argc, VALUE *argv, VALUE self) {
7113
7186
  logitmcstate *arg1 = (logitmcstate *) 0 ;
7114
- double result;
7115
7187
  void *argp1 = 0 ;
7116
7188
  int res1 = 0 ;
7189
+ double result;
7117
7190
  VALUE vresult = Qnil;
7118
7191
 
7119
7192
  if ((argc < 0) || (argc > 0)) {
@@ -7155,7 +7228,6 @@ _wrap_LogitMcState_stmax_set(int argc, VALUE *argv, VALUE self) {
7155
7228
  }
7156
7229
  arg2 = static_cast< double >(val2);
7157
7230
  if (arg1) (arg1)->stmax = arg2;
7158
-
7159
7231
  return Qnil;
7160
7232
  fail:
7161
7233
  return Qnil;
@@ -7165,9 +7237,9 @@ fail:
7165
7237
  SWIGINTERN VALUE
7166
7238
  _wrap_LogitMcState_stmax_get(int argc, VALUE *argv, VALUE self) {
7167
7239
  logitmcstate *arg1 = (logitmcstate *) 0 ;
7168
- double result;
7169
7240
  void *argp1 = 0 ;
7170
7241
  int res1 = 0 ;
7242
+ double result;
7171
7243
  VALUE vresult = Qnil;
7172
7244
 
7173
7245
  if ((argc < 0) || (argc > 0)) {
@@ -7209,7 +7281,6 @@ _wrap_LogitMcState_width_set(int argc, VALUE *argv, VALUE self) {
7209
7281
  }
7210
7282
  arg2 = static_cast< double >(val2);
7211
7283
  if (arg1) (arg1)->width = arg2;
7212
-
7213
7284
  return Qnil;
7214
7285
  fail:
7215
7286
  return Qnil;
@@ -7219,9 +7290,9 @@ fail:
7219
7290
  SWIGINTERN VALUE
7220
7291
  _wrap_LogitMcState_width_get(int argc, VALUE *argv, VALUE self) {
7221
7292
  logitmcstate *arg1 = (logitmcstate *) 0 ;
7222
- double result;
7223
7293
  void *argp1 = 0 ;
7224
7294
  int res1 = 0 ;
7295
+ double result;
7225
7296
  VALUE vresult = Qnil;
7226
7297
 
7227
7298
  if ((argc < 0) || (argc > 0)) {
@@ -7263,7 +7334,6 @@ _wrap_LogitMcState_width1_set(int argc, VALUE *argv, VALUE self) {
7263
7334
  }
7264
7335
  arg2 = static_cast< double >(val2);
7265
7336
  if (arg1) (arg1)->width1 = arg2;
7266
-
7267
7337
  return Qnil;
7268
7338
  fail:
7269
7339
  return Qnil;
@@ -7273,9 +7343,9 @@ fail:
7273
7343
  SWIGINTERN VALUE
7274
7344
  _wrap_LogitMcState_width1_get(int argc, VALUE *argv, VALUE self) {
7275
7345
  logitmcstate *arg1 = (logitmcstate *) 0 ;
7276
- double result;
7277
7346
  void *argp1 = 0 ;
7278
7347
  int res1 = 0 ;
7348
+ double result;
7279
7349
  VALUE vresult = Qnil;
7280
7350
 
7281
7351
  if ((argc < 0) || (argc > 0)) {
@@ -7317,7 +7387,6 @@ _wrap_LogitMcState_xtrapf_set(int argc, VALUE *argv, VALUE self) {
7317
7387
  }
7318
7388
  arg2 = static_cast< double >(val2);
7319
7389
  if (arg1) (arg1)->xtrapf = arg2;
7320
-
7321
7390
  return Qnil;
7322
7391
  fail:
7323
7392
  return Qnil;
@@ -7327,9 +7396,9 @@ fail:
7327
7396
  SWIGINTERN VALUE
7328
7397
  _wrap_LogitMcState_xtrapf_get(int argc, VALUE *argv, VALUE self) {
7329
7398
  logitmcstate *arg1 = (logitmcstate *) 0 ;
7330
- double result;
7331
7399
  void *argp1 = 0 ;
7332
7400
  int res1 = 0 ;
7401
+ double result;
7333
7402
  VALUE vresult = Qnil;
7334
7403
 
7335
7404
  if ((argc < 0) || (argc > 0)) {
@@ -7372,8 +7441,8 @@ _wrap_new_LogitMcState(int argc, VALUE *argv, VALUE self) {
7372
7441
  if ((argc < 0) || (argc > 0)) {
7373
7442
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7374
7443
  }
7375
- result = (logitmcstate *)new logitmcstate();DATA_PTR(self) = result;
7376
-
7444
+ result = (logitmcstate *)new logitmcstate();
7445
+ DATA_PTR(self) = result;
7377
7446
  return self;
7378
7447
  fail:
7379
7448
  return Qnil;
@@ -7410,7 +7479,6 @@ _wrap_MNLReport_ngrad_set(int argc, VALUE *argv, VALUE self) {
7410
7479
  }
7411
7480
  arg2 = static_cast< int >(val2);
7412
7481
  if (arg1) (arg1)->ngrad = arg2;
7413
-
7414
7482
  return Qnil;
7415
7483
  fail:
7416
7484
  return Qnil;
@@ -7420,9 +7488,9 @@ fail:
7420
7488
  SWIGINTERN VALUE
7421
7489
  _wrap_MNLReport_ngrad_get(int argc, VALUE *argv, VALUE self) {
7422
7490
  mnlreport *arg1 = (mnlreport *) 0 ;
7423
- int result;
7424
7491
  void *argp1 = 0 ;
7425
7492
  int res1 = 0 ;
7493
+ int result;
7426
7494
  VALUE vresult = Qnil;
7427
7495
 
7428
7496
  if ((argc < 0) || (argc > 0)) {
@@ -7464,7 +7532,6 @@ _wrap_MNLReport_nhess_set(int argc, VALUE *argv, VALUE self) {
7464
7532
  }
7465
7533
  arg2 = static_cast< int >(val2);
7466
7534
  if (arg1) (arg1)->nhess = arg2;
7467
-
7468
7535
  return Qnil;
7469
7536
  fail:
7470
7537
  return Qnil;
@@ -7474,9 +7541,9 @@ fail:
7474
7541
  SWIGINTERN VALUE
7475
7542
  _wrap_MNLReport_nhess_get(int argc, VALUE *argv, VALUE self) {
7476
7543
  mnlreport *arg1 = (mnlreport *) 0 ;
7477
- int result;
7478
7544
  void *argp1 = 0 ;
7479
7545
  int res1 = 0 ;
7546
+ int result;
7480
7547
  VALUE vresult = Qnil;
7481
7548
 
7482
7549
  if ((argc < 0) || (argc > 0)) {
@@ -7519,8 +7586,8 @@ _wrap_new_MNLReport(int argc, VALUE *argv, VALUE self) {
7519
7586
  if ((argc < 0) || (argc > 0)) {
7520
7587
  rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7521
7588
  }
7522
- result = (mnlreport *)new mnlreport();DATA_PTR(self) = result;
7523
-
7589
+ result = (mnlreport *)new mnlreport();
7590
+ DATA_PTR(self) = result;
7524
7591
  return self;
7525
7592
  fail:
7526
7593
  return Qnil;
@@ -7617,9 +7684,9 @@ SWIGINTERN VALUE
7617
7684
  _wrap_mnlprocess(int argc, VALUE *argv, VALUE self) {
7618
7685
  logitmodel *arg1 = 0 ;
7619
7686
  ap::real_1d_array *arg2 = 0 ;
7620
- VALUE result;
7621
7687
  void *argp1 = 0 ;
7622
7688
  int res1 = 0 ;
7689
+ VALUE result;
7623
7690
  VALUE vresult = Qnil;
7624
7691
 
7625
7692
  if ((argc < 2) || (argc > 2)) {
@@ -7882,13 +7949,13 @@ _wrap_mnlavgce(int argc, VALUE *argv, VALUE self) {
7882
7949
  logitmodel *arg1 = 0 ;
7883
7950
  ap::real_2d_array *arg2 = 0 ;
7884
7951
  int arg3 ;
7885
- double result;
7886
7952
  void *argp1 = 0 ;
7887
7953
  int res1 = 0 ;
7888
7954
  void *argp2 ;
7889
7955
  int res2 = 0 ;
7890
7956
  int val3 ;
7891
7957
  int ecode3 = 0 ;
7958
+ double result;
7892
7959
  VALUE vresult = Qnil;
7893
7960
 
7894
7961
  if ((argc < 3) || (argc > 3)) {
@@ -8465,6 +8532,7 @@ SWIGEXPORT void Init_alglib_ext(void) {
8465
8532
  rb_define_module_function(mAlglib_ext, "lrunpack", VALUEFUNC(_wrap_lrunpack), -1);
8466
8533
  rb_define_module_function(mAlglib_ext, "lrpack", VALUEFUNC(_wrap_lrpack), -1);
8467
8534
  rb_define_module_function(mAlglib_ext, "lrprocess", VALUEFUNC(_wrap_lrprocess), -1);
8535
+ rb_define_module_function(mAlglib_ext, "mannwhitneyutest", VALUEFUNC(_wrap_mannwhitneyutest), -1);
8468
8536
 
8469
8537
  cLogitModel.klass = rb_define_class_under(mAlglib_ext, "LogitModel", rb_cObject);
8470
8538
  SWIG_TypeClientData(SWIGTYPE_p_logitmodel, (void *) &cLogitModel);