Calculate weighted OWA functions and extending bivariate means
Project description
wowa
This package calculates weighted OWA functions and extending bivariate means" Functions are:
- py_owa: callback for sorting in general
- weightedf: symmetric base aggregator
Documentation
Installation
To install type:
$ pip install wowa
Usage of py_owa( n, x, w)
from wowa import py_owa
Callback function if sorting is needed in general
Parameters
Input parameters:
Input parameters:
n: size of arrays
x[]: NumPy array of size n, float
w[]: NumPy array of size n, float
Output parameters:
double y: sum of x[i] * w[i]
Usage of weightedf( x, p, w, cb, L)
from wowa import weightedf
Symmetric base aggregator. The weights must add to one and be non-negative.
Parameters
Input parameters:
x[]: NumPy array of inputs, size n, float
p[]: NumPy array of weights of inputs x[], size n, float
w[]: NumPy array of weights for OWA, size n, float
cb: callback function
L: number of binary tree levels. Run time = O[(n-1)L]
Output parameters:
y = weightedf
Test
To unit test type:
$ test/test.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for wowa-0.73-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce075752d810387476010f5bd4961086c1966bc59648a379d87eac5e25f17fd8 |
|
MD5 | c2f0d10cd0ba207f194689eef8a5203d |
|
BLAKE2b-256 | f58b8e88a2b445a3a820809e59581ea259c2a7500283310472c31c6b87028134 |