pyfmtools 0.79__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.79/src/pyfmtools.egg-info → pyfmtools-0.80}/PKG-INFO +1 -1
- pyfmtools-0.79/dist/pyfmtools-0.79-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.79 → pyfmtools-0.80}/setup.py +1 -1
- {pyfmtools-0.79 → pyfmtools-0.80/src/pyfmtools.egg-info}/PKG-INFO +1 -1
- {pyfmtools-0.79 → pyfmtools-0.80}/src/pyfmtools.egg-info/SOURCES.txt +1 -1
- {pyfmtools-0.79 → pyfmtools-0.80}/src/pyfmtools.py +60 -30
- {pyfmtools-0.79 → pyfmtools-0.80}/LICENSE.txt +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/MANIFEST.in +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/README.md +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/setup.cfg +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/binarylattice.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/buildPyfmtools.py +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/colamd.c +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/colamd.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/commonlib.c +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/commonlib.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/declare.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/fmrandom.cpp +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/fmrandom.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/fortify.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/fuzzymeasurefit.cpp +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/fuzzymeasurefit.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/fuzzymeasurefit3.cpp +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/fuzzymeasuretools.cpp +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/fuzzymeasuretools.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/generaldefs.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/hbio.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/ini.c +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/ini.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/isfixedvar.c +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_BFP.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_BFP1.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_BFP2.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_Hash.c +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_Hash.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_LUSOL.c +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_LUSOL.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_MDO.c +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_MDO.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_MPS.c +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_MPS.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_SOS.c +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_SOS.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_crash.c +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_crash.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_etaPFI.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_explicit.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_fortify.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_lib.c +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_lib.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_matrix.c +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_matrix.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_mipbb.c +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_mipbb.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_params.c +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_presolve.c +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_presolve.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_price.c +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_price.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_pricePSE.c +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_pricePSE.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_report.c +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_report.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_rlp.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_scale.c +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_scale.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_simplex.c +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_simplex.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_types.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_utils.c +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_utils.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_wlp.c +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lp_wlp.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lpkit.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lpslink56.c +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lpsolve.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lusol.c +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lusol.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lusol1.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lusol2.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lusol6a.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lusol6l0.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lusol6u.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lusol7a.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lusol8a.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lusolio.c +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/lusolio.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/minimalsplus.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/mmio.c +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/mmio.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/myblas.c +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/myblas.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/pyfmtools.egg-info/dependency_links.txt +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/pyfmtools.egg-info/requires.txt +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/pyfmtools.egg-info/top_level.txt +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/sparselib.c +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/sparselib.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/stdafx.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/ufortify.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/wrapperpy.cpp +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/wrapperpy.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/yacc_read.c +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/src/yacc_read.h +0 -0
- {pyfmtools-0.79 → pyfmtools-0.80}/tests/test_no_wrapper.py +0 -0
- {pyfmtools-0.79 → 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,7 +172,9 @@ 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
|
-
|
|
175
|
+
|
|
176
|
+
# version of the function using np.ascontiguousarray()
|
|
177
|
+
def convert_py_float_to_cffi_cont( x):
|
|
176
178
|
if x is not None:
|
|
177
179
|
if isinstance( x, np.ndarray) and ( x.flags.c_contiguous == True) and ( x.dtype == np.float64):
|
|
178
180
|
px = x
|
|
@@ -185,8 +187,22 @@ def convert_py_float_to_cffi( x):
|
|
|
185
187
|
pxcffi = ffi.cast( "double *", 0)
|
|
186
188
|
return px, pxcffi
|
|
187
189
|
|
|
190
|
+
# version of the function using np.array()
|
|
191
|
+
def convert_py_float_to_cffi( x):
|
|
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)
|
|
198
|
+
else:
|
|
199
|
+
# handle None
|
|
200
|
+
px = np.array( 0)
|
|
201
|
+
pxcffi = ffi.cast( "double *", 0)
|
|
202
|
+
return px, pxcffi
|
|
188
203
|
|
|
189
|
-
|
|
204
|
+
# version of the function using np.ascontiguousarray()
|
|
205
|
+
def convert_py_int_to_cffi_cont( x):
|
|
190
206
|
if x is not None:
|
|
191
207
|
if isinstance( x, np.ndarray) and ( x.flags.c_contiguous == True) and ( x.dtype == np.int32):
|
|
192
208
|
px = x
|
|
@@ -199,6 +215,20 @@ def convert_py_int_to_cffi( x):
|
|
|
199
215
|
pxcffi = ffi.cast( "int *", 0)
|
|
200
216
|
return px, pxcffi
|
|
201
217
|
|
|
218
|
+
# version of the function using np.array()
|
|
219
|
+
def convert_py_int_to_cffi( x):
|
|
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)
|
|
230
|
+
return px, pxcffi
|
|
231
|
+
|
|
202
232
|
###
|
|
203
233
|
# The python minimum wrapper for py_ functions from wrapper.cpp
|
|
204
234
|
###
|
|
@@ -496,7 +526,7 @@ def Entropy(v, env):
|
|
|
496
526
|
def FuzzyMeasureFit(datanum, additive, env, dataset):
|
|
497
527
|
trace( "void py_FuzzyMeasureFit(int datanum, int additive, struct fm_env* env, double* out_v, double* dataset)")
|
|
498
528
|
pout_vnp, pout_v = create_float_zeros_as_CFFI_double( env.m)
|
|
499
|
-
pdatasetnp, pdataset =
|
|
529
|
+
pdatasetnp, pdataset = convert_py_float_to_cffi_cont( dataset)
|
|
500
530
|
fm.py_FuzzyMeasureFit( datanum, additive, env, pout_v, pdataset)
|
|
501
531
|
return pout_vnp
|
|
502
532
|
|
|
@@ -506,7 +536,7 @@ def FuzzyMeasureFit(datanum, additive, env, dataset):
|
|
|
506
536
|
def FuzzyMeasureFitMob(datanum, additive, env, dataset):
|
|
507
537
|
trace( "void py_FuzzyMeasureFitMob(int datanum, int additive, struct fm_env* env, double* out_v, double* dataset)")
|
|
508
538
|
pout_vnp, pout_v = create_float_zeros_as_CFFI_double( env.m)
|
|
509
|
-
pdatasetnp, pdataset =
|
|
539
|
+
pdatasetnp, pdataset = convert_py_float_to_cffi_cont( dataset)
|
|
510
540
|
fm.py_FuzzyMeasureFitMob( datanum, additive, env, pout_v, pdataset)
|
|
511
541
|
return pout_vnp
|
|
512
542
|
|
|
@@ -516,7 +546,7 @@ def FuzzyMeasureFitMob(datanum, additive, env, dataset):
|
|
|
516
546
|
def FuzzyMeasureFitKtolerant(datanum, additive, env, dataset):
|
|
517
547
|
trace( "void py_FuzzyMeasureFitKtolerant(int datanum, int additive, struct fm_env* env, double* out_v, double* dataset)")
|
|
518
548
|
pout_vnp, pout_v = create_float_zeros_as_CFFI_double( env.m)
|
|
519
|
-
pdatasetnp, pdataset =
|
|
549
|
+
pdatasetnp, pdataset = convert_py_float_to_cffi_cont( dataset)
|
|
520
550
|
fm.py_FuzzyMeasureFitKtolerant( datanum, additive, env, pout_v, pdataset)
|
|
521
551
|
return pout_vnp
|
|
522
552
|
|
|
@@ -526,7 +556,7 @@ def FuzzyMeasureFitKtolerant(datanum, additive, env, dataset):
|
|
|
526
556
|
def FuzzyMeasureFitLPKmaxitive(datanum, additive, env, dataset):
|
|
527
557
|
trace( "void py_FuzzyMeasureFitLPKmaxitive(int datanum, int additive, struct fm_env* env, double* out_v, double* dataset)")
|
|
528
558
|
pout_vnp, pout_v = create_float_zeros_as_CFFI_double( env.m)
|
|
529
|
-
pdatasetnp, pdataset =
|
|
559
|
+
pdatasetnp, pdataset = convert_py_float_to_cffi_cont( dataset)
|
|
530
560
|
fm.py_FuzzyMeasureFitLPKmaxitive( datanum, additive, env, pout_v, pdataset)
|
|
531
561
|
return pout_vnp
|
|
532
562
|
|
|
@@ -536,8 +566,8 @@ def FuzzyMeasureFitLPKmaxitive(datanum, additive, env, dataset):
|
|
|
536
566
|
def FuzzyMeasureFitLPKinteractive(datanum, additive, env, K, dataset):
|
|
537
567
|
trace( "void py_FuzzyMeasureFitLPKinteractive(int datanum, int additive, struct fm_env* env, double* out_v, double* dataset, double* K)")
|
|
538
568
|
pout_vnp, pout_v = create_float_zeros_as_CFFI_double( env.m)
|
|
539
|
-
pdatasetnp, pdataset =
|
|
540
|
-
pKnp, pK =
|
|
569
|
+
pdatasetnp, pdataset = convert_py_float_to_cffi_cont( dataset)
|
|
570
|
+
pKnp, pK = convert_py_float_to_cffi_cont( K)
|
|
541
571
|
fm.py_FuzzyMeasureFitLPKinteractive( datanum, additive, env, pout_v, pdataset, pK)
|
|
542
572
|
return pout_vnp
|
|
543
573
|
|
|
@@ -558,9 +588,9 @@ def FuzzyMeasureFitLPKinteractiveMaxChains(datanum, additive, env, K, dataset):
|
|
|
558
588
|
def FuzzyMeasureFitLPKinteractiveAutoK(datanum, additive, env, K, maxiters, dataset):
|
|
559
589
|
trace( "void py_FuzzyMeasureFitLPKinteractiveAutoK(int datanum, int additive, struct fm_env* env, double* out_v, double* dataset, double* K, int* maxiters)")
|
|
560
590
|
pout_vnp, pout_v = create_float_zeros_as_CFFI_double( env.m)
|
|
561
|
-
pdatasetnp, pdataset =
|
|
562
|
-
pKnp, pK =
|
|
563
|
-
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)
|
|
564
594
|
fm.py_FuzzyMeasureFitLPKinteractiveAutoK( datanum, additive, env, pout_v, pdataset, pK, pmaxiters)
|
|
565
595
|
return pout_vnp
|
|
566
596
|
|
|
@@ -570,8 +600,8 @@ def FuzzyMeasureFitLPKinteractiveAutoK(datanum, additive, env, K, maxiters, data
|
|
|
570
600
|
def FuzzyMeasureFitLPKinteractiveMarginal(datanum, additive, env, K, submod, dataset):
|
|
571
601
|
trace( "void py_FuzzyMeasureFitLPKinteractiveMarginal(int datanum, int additive, struct fm_env* env, double* out_v, double* dataset, double* K, int submod)")
|
|
572
602
|
pout_vnp, pout_v = create_float_zeros_as_CFFI_double( env.m)
|
|
573
|
-
pdatasetnp, pdataset =
|
|
574
|
-
pKnp, pK =
|
|
603
|
+
pdatasetnp, pdataset = convert_py_float_to_cffi_cont( dataset)
|
|
604
|
+
pKnp, pK = convert_py_float_to_cffi_cont( K)
|
|
575
605
|
fm.py_FuzzyMeasureFitLPKinteractiveMarginal( datanum, additive, env, pout_v, pdataset, pK, submod)
|
|
576
606
|
return pout_vnp
|
|
577
607
|
|
|
@@ -579,9 +609,9 @@ def FuzzyMeasureFitLPKinteractiveMarginal(datanum, additive, env, K, submod, dat
|
|
|
579
609
|
def FuzzyMeasureFitLPKinteractiveMarginalMaxChain(datanum, additive, env, K, maxiters, submod, dataset):
|
|
580
610
|
trace( "void py_FuzzyMeasureFitLPKinteractiveMarginalMaxChain(int datanum, int additive, struct fm_env* env, double* out_v, double* dataset, double* K, int* maxiters, int submod)")
|
|
581
611
|
pout_vnp, pout_v = create_float_zeros_as_CFFI_double( env.m)
|
|
582
|
-
pdatasetnp, pdataset =
|
|
583
|
-
pKnp, pK =
|
|
584
|
-
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)
|
|
585
615
|
fm.py_FuzzyMeasureFitLPKinteractiveMarginalMaxChain( datanum, additive, env, pout_v, pdataset, pK, pmaxiters, submod)
|
|
586
616
|
return pout_vnp
|
|
587
617
|
|
|
@@ -590,12 +620,12 @@ def FuzzyMeasureFitLPKinteractiveMarginalMaxChain(datanum, additive, env, K, max
|
|
|
590
620
|
def FuzzyMeasureFitLP(datanum, additive, env, options, indexlow, indexhihg, option1, orness, dataset):
|
|
591
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)")
|
|
592
622
|
pout_vnp, pout_v = create_float_zeros_as_CFFI_double( env.m)
|
|
593
|
-
pdatasetnp, pdataset =
|
|
594
|
-
poptionsnp, poptions =
|
|
595
|
-
pindexlownp, pindexlow =
|
|
596
|
-
pindexhihgnp, pindexhihg =
|
|
597
|
-
poption1np, poption1 =
|
|
598
|
-
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)
|
|
599
629
|
fm.py_FuzzyMeasureFitLP( datanum, additive, env, pout_v, pdataset, poptions, pindexlow, pindexhihg, poption1, porness)
|
|
600
630
|
return pout_vnp
|
|
601
631
|
|
|
@@ -604,12 +634,12 @@ def FuzzyMeasureFitLP(datanum, additive, env, options, indexlow, indexhihg, opti
|
|
|
604
634
|
def FuzzyMeasureFitLPMob(datanum, additive, env, options, indexlow, indexhihg, option1, orness, dataset):
|
|
605
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)")
|
|
606
636
|
pout_vnp, pout_v = create_float_zeros_as_CFFI_double( env.m)
|
|
607
|
-
pdatasetnp, pdataset =
|
|
608
|
-
poptionsnp, poptions =
|
|
609
|
-
pindexlownp, pindexlow =
|
|
610
|
-
pindexhihgnp, pindexhihg =
|
|
611
|
-
poption1np, poption1 =
|
|
612
|
-
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)
|
|
613
643
|
fm.py_FuzzyMeasureFitLPMob( datanum, additive, env, pout_v, pdataset, poptions, pindexlow, pindexhihg, poption1, porness)
|
|
614
644
|
return pout_vnp
|
|
615
645
|
|
|
@@ -618,7 +648,7 @@ def FuzzyMeasureFitLPMob(datanum, additive, env, options, indexlow, indexhihg, o
|
|
|
618
648
|
def fittingOWA(datanum, env, dataset):
|
|
619
649
|
trace( "void py_fittingOWA(int datanum, struct fm_env* env, double* out_v, double* dataset)")
|
|
620
650
|
pout_vnp, pout_v = create_float_zeros_as_CFFI_double( env.m)
|
|
621
|
-
pdatasetnp, pdataset =
|
|
651
|
+
pdatasetnp, pdataset = convert_py_float_to_cffi_cont( dataset)
|
|
622
652
|
fm.py_fittingOWA( datanum, env, pout_v, pdataset)
|
|
623
653
|
return pout_vnp, dataset
|
|
624
654
|
|
|
@@ -627,7 +657,7 @@ def fittingOWA(datanum, env, dataset):
|
|
|
627
657
|
def fittingWAM(datanum, env, dataset):
|
|
628
658
|
trace( "void py_fittingWAM(int datanum, struct fm_env* env, double* out_v, double* dataset)")
|
|
629
659
|
pout_vnp, pout_v = create_float_zeros_as_CFFI_double( env.m)
|
|
630
|
-
pdatasetnp, pdataset =
|
|
660
|
+
pdatasetnp, pdataset = convert_py_float_to_cffi_cont( dataset)
|
|
631
661
|
fm.py_fittingWAM( datanum, env, pout_v, pdataset)
|
|
632
662
|
return pout_vnp
|
|
633
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
|