Module type2fuzzy.type_reduction
type2fuzzy.type_reduction
Type-2 Fuzzy Set Type reducers
Mendel-John.
Karnik-Mendel.
Hagras.
Partial Centroid.
Expand source code
'''
type2fuzzy.type_reduction
Type-2 Fuzzy Set Type reducers<br/>
Mendel-John.<br/>
Karnik-Mendel.<br/>
Hagras.<br/>
Partial Centroid.<br/>
'''
from type2fuzzy.type_reduction.gt2_mendeljohn_reducer import gt2_mendeljohn_reduce
from type2fuzzy.type_reduction.gt2_partialcentroid_reducer import gt2_partialcentroid_reduce
from type2fuzzy.type_reduction.it2_karnikmendel_reducer import it2_kernikmendel_reduce
from type2fuzzy.type_reduction.zslice_hagras_reducer import zslice_hagras_reduce
__all__ = ['gt2_mendeljohn_reduce', 'gt2_partialcentroid_reduce',
'it2_kernikmendel_reduce', 'zslice_hagras_reduce']
Sub-modules
type2fuzzy.type_reduction.gt2_mendeljohn_reducer
type2fuzzy.type_reduction.gt2_partialcentroid_reducer
type2fuzzy.type_reduction.it2_karnikmendel_reducer
type2fuzzy.type_reduction.zslice_hagras_reducer
Functions
def gt2_mendeljohn_reduce(gt2fs, precision=5, information='none')
-
References:
Karnik, Nilesh N., and Jerry M. Mendel. "Centroid of a type-2 fuzzy set." Information Sciences 132.1-4 (2001): 195-220.
Arguments:
gt2fs – the general type 2 fuzzy set precision – the precision applied when computing N/D and F information – the amount of information given to the user; none - no information
Expand source code
def gt2_mendeljohn_reduce(gt2fs, precision=5, information='none'): ''' References: ----------- Karnik, Nilesh N., and Jerry M. Mendel. "Centroid of a type-2 fuzzy set." Information Sciences 132.1-4 (2001): 195-220. Arguments: ---------- gt2fs -- the general type 2 fuzzy set precision -- the precision applied when computing N/D and F information -- the amount of information given to the user; none - no information ''' reduced_set = None if information == 'none': reduced_set = _gt2_mendeljohn_noinfo(gt2fs, precision) return reduced_set
def gt2_partialcentroid_reduce(gt2fs, precision=5, information='none')
-
References:
Gafa, Carmel, and Simon Coupland. "A new recursive type-reduction procedure for general type-2 fuzzy sets." Advances in Type-2 Fuzzy Logic Systems (T2FUZZ), 2011 IEEE Symposium on. IEEE, 2011.
Arguments:
gt2fs – the general type 2 fuzzy set precision – the precision applied when computing N/D and F information – the amount of information given to the user; none - no information
Expand source code
def gt2_partialcentroid_reduce(gt2fs, precision=5, information='none'): ''' References: ----------- Gafa, Carmel, and Simon Coupland. "A new recursive type-reduction procedure for general type-2 fuzzy sets." Advances in Type-2 Fuzzy Logic Systems (T2FUZZ), 2011 IEEE Symposium on. IEEE, 2011. Arguments: ---------- gt2fs -- the general type 2 fuzzy set precision -- the precision applied when computing N/D and F information -- the amount of information given to the user; none - no information ''' reduced_set = None if information == 'none': reduced_set = _gt2_partialcentroid_noinfo(gt2fs, precision) return reduced_set
def it2_kernikmendel_reduce(it2fs, precision=5, information='none')
-
Expand source code
def it2_kernikmendel_reduce(it2fs, precision=5, information='none'): reduced_set = None if information == 'none': reduced_set = _it2_kernikmendel_reduce_noinfo(it2fs, precision) elif information == 'full': reduced_set = _it2_kernikmendel_reduce_fullinfo(it2fs, precision) return reduced_set
def zslice_hagras_reduce(zt2fs, precision=5, information='none')
-
References:
Arguments:
zt2fs – the z-slice type 2 fuzzy set precision – the precision applied when computing N/D and F information – the amount of information given to the user; none - no information
Expand source code
def zslice_hagras_reduce(zt2fs, precision=5, information='none'): ''' References: ----------- Arguments: ---------- zt2fs -- the z-slice type 2 fuzzy set precision -- the precision applied when computing N/D and F information -- the amount of information given to the user; none - no information ''' reduced_set = None if information == 'none': reduced_set = _zslice_hagras_noinfo(zt2fs, precision) elif information == 'full': reduced_set = _zslice_hagras_fullinfo(zt2fs, precision) return reduced_set