Calculate weighted OWA functions and extending bivariate means
Project description
wowa
This package calculates weighted OWA functions and extending bivariate means" Functions are:
- owa: callback for sorting in general
- weightedf: symmetric base aggregator
Documentation
Installation
To install type:
$ pip install wowa
Usage of owa( n, x, w)
from wowa import 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.71-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0b091a627fda3f520d5045411645e78358378bc36c429059a5ce06ce1526f5d |
|
MD5 | 12909a83c8970aaa74701db54d5a34fe |
|
BLAKE2b-256 | 31e6f4e271737e7a3e347f1490486e26bed9ee4a4679b8afce92fa940d9c6b35 |