pyfmtools 0.78__tar.gz → 0.80__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyfmtools-0.78/src/pyfmtools.egg-info → pyfmtools-0.80}/PKG-INFO +1 -1
- pyfmtools-0.78/dist/pyfmtools-0.78-cp39-cp39-macosx_10_9_x86_64.whl → pyfmtools-0.80/dist/pyfmtools-0.80-cp39-cp39-macosx_10_9_x86_64.whl +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/setup.py +1 -1
- {pyfmtools-0.78 → pyfmtools-0.80/src/pyfmtools.egg-info}/PKG-INFO +1 -1
- {pyfmtools-0.78 → pyfmtools-0.80}/src/pyfmtools.egg-info/SOURCES.txt +1 -1
- {pyfmtools-0.78 → pyfmtools-0.80}/src/pyfmtools.py +77 -37
- {pyfmtools-0.78 → pyfmtools-0.80}/LICENSE.txt +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/MANIFEST.in +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/README.md +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/setup.cfg +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/binarylattice.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/buildPyfmtools.py +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/colamd.c +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/colamd.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/commonlib.c +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/commonlib.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/declare.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/fmrandom.cpp +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/fmrandom.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/fortify.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/fuzzymeasurefit.cpp +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/fuzzymeasurefit.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/fuzzymeasurefit3.cpp +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/fuzzymeasuretools.cpp +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/fuzzymeasuretools.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/generaldefs.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/hbio.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/ini.c +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/ini.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/isfixedvar.c +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_BFP.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_BFP1.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_BFP2.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_Hash.c +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_Hash.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_LUSOL.c +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_LUSOL.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_MDO.c +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_MDO.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_MPS.c +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_MPS.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_SOS.c +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_SOS.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_crash.c +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_crash.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_etaPFI.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_explicit.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_fortify.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_lib.c +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_lib.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_matrix.c +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_matrix.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_mipbb.c +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_mipbb.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_params.c +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_presolve.c +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_presolve.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_price.c +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_price.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_pricePSE.c +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_pricePSE.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_report.c +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_report.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_rlp.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_scale.c +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_scale.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_simplex.c +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_simplex.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_types.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_utils.c +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_utils.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_wlp.c +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lp_wlp.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lpkit.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lpslink56.c +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lpsolve.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lusol.c +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lusol.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lusol1.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lusol2.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lusol6a.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lusol6l0.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lusol6u.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lusol7a.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lusol8a.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lusolio.c +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/lusolio.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/minimalsplus.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/mmio.c +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/mmio.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/myblas.c +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/myblas.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/pyfmtools.egg-info/dependency_links.txt +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/pyfmtools.egg-info/requires.txt +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/pyfmtools.egg-info/top_level.txt +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/sparselib.c +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/sparselib.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/stdafx.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/ufortify.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/wrapperpy.cpp +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/wrapperpy.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/yacc_read.c +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/src/yacc_read.h +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/tests/test_no_wrapper.py +0 -0
- {pyfmtools-0.78 → pyfmtools-0.80}/tests/test_wrapper.py +0 -0
|
Binary file
|
|
@@ -10,7 +10,7 @@ with open("README.md", "r") as fh:
|
|
|
10
10
|
|
|
11
11
|
setup(
|
|
12
12
|
name="pyfmtools",
|
|
13
|
-
version="0.
|
|
13
|
+
version="0.80",
|
|
14
14
|
description="Library for handling and fitting fuzzy measures",
|
|
15
15
|
long_description=open('README.md').read(),
|
|
16
16
|
long_description_content_type="text/markdown",
|
|
@@ -172,23 +172,63 @@ def create_float_zeros_as_CFFI_double( n):
|
|
|
172
172
|
px = ffi.cast( "double *", x.ctypes.data)
|
|
173
173
|
return x, px
|
|
174
174
|
|
|
175
|
+
|
|
176
|
+
# version of the function using np.ascontiguousarray()
|
|
177
|
+
def convert_py_float_to_cffi_cont( x):
|
|
178
|
+
if x is not None:
|
|
179
|
+
if isinstance( x, np.ndarray) and ( x.flags.c_contiguous == True) and ( x.dtype == np.float64):
|
|
180
|
+
px = x
|
|
181
|
+
else:
|
|
182
|
+
px = np.ascontiguousarray( x, dtype = 'float64')
|
|
183
|
+
pxcffi = ffi.cast( "double *", px.ctypes.data)
|
|
184
|
+
else:
|
|
185
|
+
# handle None
|
|
186
|
+
px = np.array( 0)
|
|
187
|
+
pxcffi = ffi.cast( "double *", 0)
|
|
188
|
+
return px, pxcffi
|
|
189
|
+
|
|
190
|
+
# version of the function using np.array()
|
|
175
191
|
def convert_py_float_to_cffi( x):
|
|
176
|
-
if
|
|
177
|
-
|
|
192
|
+
if x is not None:
|
|
193
|
+
if isinstance( x, np.ndarray) and ( x.flags.c_contiguous == True) and ( x.dtype == np.float64):
|
|
194
|
+
px = x
|
|
195
|
+
else:
|
|
196
|
+
px = np.array( x, dtype = 'float64')
|
|
197
|
+
pxcffi = ffi.cast( "double *", px.ctypes.data)
|
|
178
198
|
else:
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
199
|
+
# handle None
|
|
200
|
+
px = np.array( 0)
|
|
201
|
+
pxcffi = ffi.cast( "double *", 0)
|
|
182
202
|
return px, pxcffi
|
|
183
203
|
|
|
204
|
+
# version of the function using np.ascontiguousarray()
|
|
205
|
+
def convert_py_int_to_cffi_cont( x):
|
|
206
|
+
if x is not None:
|
|
207
|
+
if isinstance( x, np.ndarray) and ( x.flags.c_contiguous == True) and ( x.dtype == np.int32):
|
|
208
|
+
px = x
|
|
209
|
+
else:
|
|
210
|
+
px = np.ascontiguousarray( x, dtype = 'int32')
|
|
211
|
+
pxcffi = ffi.cast( "int *", px.ctypes.data)
|
|
212
|
+
else:
|
|
213
|
+
# handle None
|
|
214
|
+
px = np.array( 0)
|
|
215
|
+
pxcffi = ffi.cast( "int *", 0)
|
|
216
|
+
return px, pxcffi
|
|
184
217
|
|
|
218
|
+
# version of the function using np.array()
|
|
185
219
|
def convert_py_int_to_cffi( x):
|
|
186
|
-
x
|
|
187
|
-
|
|
188
|
-
|
|
220
|
+
if x is not None:
|
|
221
|
+
if isinstance( x, np.ndarray) and ( x.flags.c_contiguous == True) and ( x.dtype == np.int32):
|
|
222
|
+
px = x
|
|
223
|
+
else:
|
|
224
|
+
px = np.array( x, dtype = 'int32')
|
|
225
|
+
pxcffi = ffi.cast( "int *", px.ctypes.data)
|
|
226
|
+
else:
|
|
227
|
+
# handle None
|
|
228
|
+
px = np.array( 0)
|
|
229
|
+
pxcffi = ffi.cast( "int *", 0)
|
|
189
230
|
return px, pxcffi
|
|
190
231
|
|
|
191
|
-
|
|
192
232
|
###
|
|
193
233
|
# The python minimum wrapper for py_ functions from wrapper.cpp
|
|
194
234
|
###
|
|
@@ -486,7 +526,7 @@ def Entropy(v, env):
|
|
|
486
526
|
def FuzzyMeasureFit(datanum, additive, env, dataset):
|
|
487
527
|
trace( "void py_FuzzyMeasureFit(int datanum, int additive, struct fm_env* env, double* out_v, double* dataset)")
|
|
488
528
|
pout_vnp, pout_v = create_float_zeros_as_CFFI_double( env.m)
|
|
489
|
-
pdatasetnp, pdataset =
|
|
529
|
+
pdatasetnp, pdataset = convert_py_float_to_cffi_cont( dataset)
|
|
490
530
|
fm.py_FuzzyMeasureFit( datanum, additive, env, pout_v, pdataset)
|
|
491
531
|
return pout_vnp
|
|
492
532
|
|
|
@@ -496,7 +536,7 @@ def FuzzyMeasureFit(datanum, additive, env, dataset):
|
|
|
496
536
|
def FuzzyMeasureFitMob(datanum, additive, env, dataset):
|
|
497
537
|
trace( "void py_FuzzyMeasureFitMob(int datanum, int additive, struct fm_env* env, double* out_v, double* dataset)")
|
|
498
538
|
pout_vnp, pout_v = create_float_zeros_as_CFFI_double( env.m)
|
|
499
|
-
pdatasetnp, pdataset =
|
|
539
|
+
pdatasetnp, pdataset = convert_py_float_to_cffi_cont( dataset)
|
|
500
540
|
fm.py_FuzzyMeasureFitMob( datanum, additive, env, pout_v, pdataset)
|
|
501
541
|
return pout_vnp
|
|
502
542
|
|
|
@@ -506,7 +546,7 @@ def FuzzyMeasureFitMob(datanum, additive, env, dataset):
|
|
|
506
546
|
def FuzzyMeasureFitKtolerant(datanum, additive, env, dataset):
|
|
507
547
|
trace( "void py_FuzzyMeasureFitKtolerant(int datanum, int additive, struct fm_env* env, double* out_v, double* dataset)")
|
|
508
548
|
pout_vnp, pout_v = create_float_zeros_as_CFFI_double( env.m)
|
|
509
|
-
pdatasetnp, pdataset =
|
|
549
|
+
pdatasetnp, pdataset = convert_py_float_to_cffi_cont( dataset)
|
|
510
550
|
fm.py_FuzzyMeasureFitKtolerant( datanum, additive, env, pout_v, pdataset)
|
|
511
551
|
return pout_vnp
|
|
512
552
|
|
|
@@ -516,7 +556,7 @@ def FuzzyMeasureFitKtolerant(datanum, additive, env, dataset):
|
|
|
516
556
|
def FuzzyMeasureFitLPKmaxitive(datanum, additive, env, dataset):
|
|
517
557
|
trace( "void py_FuzzyMeasureFitLPKmaxitive(int datanum, int additive, struct fm_env* env, double* out_v, double* dataset)")
|
|
518
558
|
pout_vnp, pout_v = create_float_zeros_as_CFFI_double( env.m)
|
|
519
|
-
pdatasetnp, pdataset =
|
|
559
|
+
pdatasetnp, pdataset = convert_py_float_to_cffi_cont( dataset)
|
|
520
560
|
fm.py_FuzzyMeasureFitLPKmaxitive( datanum, additive, env, pout_v, pdataset)
|
|
521
561
|
return pout_vnp
|
|
522
562
|
|
|
@@ -526,8 +566,8 @@ def FuzzyMeasureFitLPKmaxitive(datanum, additive, env, dataset):
|
|
|
526
566
|
def FuzzyMeasureFitLPKinteractive(datanum, additive, env, K, dataset):
|
|
527
567
|
trace( "void py_FuzzyMeasureFitLPKinteractive(int datanum, int additive, struct fm_env* env, double* out_v, double* dataset, double* K)")
|
|
528
568
|
pout_vnp, pout_v = create_float_zeros_as_CFFI_double( env.m)
|
|
529
|
-
pdatasetnp, pdataset =
|
|
530
|
-
pKnp, pK =
|
|
569
|
+
pdatasetnp, pdataset = convert_py_float_to_cffi_cont( dataset)
|
|
570
|
+
pKnp, pK = convert_py_float_to_cffi_cont( K)
|
|
531
571
|
fm.py_FuzzyMeasureFitLPKinteractive( datanum, additive, env, pout_v, pdataset, pK)
|
|
532
572
|
return pout_vnp
|
|
533
573
|
|
|
@@ -548,9 +588,9 @@ def FuzzyMeasureFitLPKinteractiveMaxChains(datanum, additive, env, K, dataset):
|
|
|
548
588
|
def FuzzyMeasureFitLPKinteractiveAutoK(datanum, additive, env, K, maxiters, dataset):
|
|
549
589
|
trace( "void py_FuzzyMeasureFitLPKinteractiveAutoK(int datanum, int additive, struct fm_env* env, double* out_v, double* dataset, double* K, int* maxiters)")
|
|
550
590
|
pout_vnp, pout_v = create_float_zeros_as_CFFI_double( env.m)
|
|
551
|
-
pdatasetnp, pdataset =
|
|
552
|
-
pKnp, pK =
|
|
553
|
-
pmaxitersnp, pmaxiters =
|
|
591
|
+
pdatasetnp, pdataset = convert_py_float_to_cffi_cont( dataset)
|
|
592
|
+
pKnp, pK = convert_py_float_to_cffi_cont( K)
|
|
593
|
+
pmaxitersnp, pmaxiters = convert_py_int_to_cffi_cont( maxiters)
|
|
554
594
|
fm.py_FuzzyMeasureFitLPKinteractiveAutoK( datanum, additive, env, pout_v, pdataset, pK, pmaxiters)
|
|
555
595
|
return pout_vnp
|
|
556
596
|
|
|
@@ -560,8 +600,8 @@ def FuzzyMeasureFitLPKinteractiveAutoK(datanum, additive, env, K, maxiters, data
|
|
|
560
600
|
def FuzzyMeasureFitLPKinteractiveMarginal(datanum, additive, env, K, submod, dataset):
|
|
561
601
|
trace( "void py_FuzzyMeasureFitLPKinteractiveMarginal(int datanum, int additive, struct fm_env* env, double* out_v, double* dataset, double* K, int submod)")
|
|
562
602
|
pout_vnp, pout_v = create_float_zeros_as_CFFI_double( env.m)
|
|
563
|
-
pdatasetnp, pdataset =
|
|
564
|
-
pKnp, pK =
|
|
603
|
+
pdatasetnp, pdataset = convert_py_float_to_cffi_cont( dataset)
|
|
604
|
+
pKnp, pK = convert_py_float_to_cffi_cont( K)
|
|
565
605
|
fm.py_FuzzyMeasureFitLPKinteractiveMarginal( datanum, additive, env, pout_v, pdataset, pK, submod)
|
|
566
606
|
return pout_vnp
|
|
567
607
|
|
|
@@ -569,9 +609,9 @@ def FuzzyMeasureFitLPKinteractiveMarginal(datanum, additive, env, K, submod, dat
|
|
|
569
609
|
def FuzzyMeasureFitLPKinteractiveMarginalMaxChain(datanum, additive, env, K, maxiters, submod, dataset):
|
|
570
610
|
trace( "void py_FuzzyMeasureFitLPKinteractiveMarginalMaxChain(int datanum, int additive, struct fm_env* env, double* out_v, double* dataset, double* K, int* maxiters, int submod)")
|
|
571
611
|
pout_vnp, pout_v = create_float_zeros_as_CFFI_double( env.m)
|
|
572
|
-
pdatasetnp, pdataset =
|
|
573
|
-
pKnp, pK =
|
|
574
|
-
pmaxitersnp, pmaxiters =
|
|
612
|
+
pdatasetnp, pdataset = convert_py_float_to_cffi_cont( dataset)
|
|
613
|
+
pKnp, pK = convert_py_float_to_cffi_cont( K)
|
|
614
|
+
pmaxitersnp, pmaxiters = convert_py_int_to_cffi_cont( maxiters)
|
|
575
615
|
fm.py_FuzzyMeasureFitLPKinteractiveMarginalMaxChain( datanum, additive, env, pout_v, pdataset, pK, pmaxiters, submod)
|
|
576
616
|
return pout_vnp
|
|
577
617
|
|
|
@@ -580,12 +620,12 @@ def FuzzyMeasureFitLPKinteractiveMarginalMaxChain(datanum, additive, env, K, max
|
|
|
580
620
|
def FuzzyMeasureFitLP(datanum, additive, env, options, indexlow, indexhihg, option1, orness, dataset):
|
|
581
621
|
trace( "void py_FuzzyMeasureFitLP(int datanum, int additive, struct fm_env* env, double* out_v, double* dataset, int* options, double* indexlow, double* indexhihg, int* option1, double* orness)")
|
|
582
622
|
pout_vnp, pout_v = create_float_zeros_as_CFFI_double( env.m)
|
|
583
|
-
pdatasetnp, pdataset =
|
|
584
|
-
poptionsnp, poptions =
|
|
585
|
-
pindexlownp, pindexlow =
|
|
586
|
-
pindexhihgnp, pindexhihg =
|
|
587
|
-
poption1np, poption1 =
|
|
588
|
-
pornessnp, porness =
|
|
623
|
+
pdatasetnp, pdataset = convert_py_float_to_cffi_cont( dataset)
|
|
624
|
+
poptionsnp, poptions = convert_py_int_to_cffi_cont( options)
|
|
625
|
+
pindexlownp, pindexlow = convert_py_float_to_cffi_cont( indexlow)
|
|
626
|
+
pindexhihgnp, pindexhihg = convert_py_float_to_cffi_cont( indexhihg)
|
|
627
|
+
poption1np, poption1 = convert_py_int_to_cffi_cont( option1)
|
|
628
|
+
pornessnp, porness = convert_py_float_to_cffi_cont( orness)
|
|
589
629
|
fm.py_FuzzyMeasureFitLP( datanum, additive, env, pout_v, pdataset, poptions, pindexlow, pindexhihg, poption1, porness)
|
|
590
630
|
return pout_vnp
|
|
591
631
|
|
|
@@ -594,12 +634,12 @@ def FuzzyMeasureFitLP(datanum, additive, env, options, indexlow, indexhihg, opti
|
|
|
594
634
|
def FuzzyMeasureFitLPMob(datanum, additive, env, options, indexlow, indexhihg, option1, orness, dataset):
|
|
595
635
|
trace( "void py_FuzzyMeasureFitLPMob(int datanum, int additive, struct fm_env* env, double* out_v, double* dataset, int* options, double* indexlow, double* indexhihg, int* option1, double* orness)")
|
|
596
636
|
pout_vnp, pout_v = create_float_zeros_as_CFFI_double( env.m)
|
|
597
|
-
pdatasetnp, pdataset =
|
|
598
|
-
poptionsnp, poptions =
|
|
599
|
-
pindexlownp, pindexlow =
|
|
600
|
-
pindexhihgnp, pindexhihg =
|
|
601
|
-
poption1np, poption1 =
|
|
602
|
-
pornessnp, porness =
|
|
637
|
+
pdatasetnp, pdataset = convert_py_float_to_cffi_cont( dataset)
|
|
638
|
+
poptionsnp, poptions = convert_py_int_to_cffi_cont( options)
|
|
639
|
+
pindexlownp, pindexlow = convert_py_float_to_cffi_cont( indexlow)
|
|
640
|
+
pindexhihgnp, pindexhihg = convert_py_float_to_cffi_cont( indexhihg)
|
|
641
|
+
poption1np, poption1 = convert_py_int_to_cffi_cont( option1)
|
|
642
|
+
pornessnp, porness = convert_py_float_to_cffi_cont( orness)
|
|
603
643
|
fm.py_FuzzyMeasureFitLPMob( datanum, additive, env, pout_v, pdataset, poptions, pindexlow, pindexhihg, poption1, porness)
|
|
604
644
|
return pout_vnp
|
|
605
645
|
|
|
@@ -608,7 +648,7 @@ def FuzzyMeasureFitLPMob(datanum, additive, env, options, indexlow, indexhihg, o
|
|
|
608
648
|
def fittingOWA(datanum, env, dataset):
|
|
609
649
|
trace( "void py_fittingOWA(int datanum, struct fm_env* env, double* out_v, double* dataset)")
|
|
610
650
|
pout_vnp, pout_v = create_float_zeros_as_CFFI_double( env.m)
|
|
611
|
-
pdatasetnp, pdataset =
|
|
651
|
+
pdatasetnp, pdataset = convert_py_float_to_cffi_cont( dataset)
|
|
612
652
|
fm.py_fittingOWA( datanum, env, pout_v, pdataset)
|
|
613
653
|
return pout_vnp, dataset
|
|
614
654
|
|
|
@@ -617,7 +657,7 @@ def fittingOWA(datanum, env, dataset):
|
|
|
617
657
|
def fittingWAM(datanum, env, dataset):
|
|
618
658
|
trace( "void py_fittingWAM(int datanum, struct fm_env* env, double* out_v, double* dataset)")
|
|
619
659
|
pout_vnp, pout_v = create_float_zeros_as_CFFI_double( env.m)
|
|
620
|
-
pdatasetnp, pdataset =
|
|
660
|
+
pdatasetnp, pdataset = convert_py_float_to_cffi_cont( dataset)
|
|
621
661
|
fm.py_fittingWAM( datanum, env, pout_v, pdataset)
|
|
622
662
|
return pout_vnp
|
|
623
663
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|