Skip to main content

Calculate weighted OWA functions and extending bivariate means

Project description

combineArrays

This package calculates weighted OWA functions and extending bivariate means" Functions are:

  • owa: callback function if sorting is needed in general
  • weightedf: symmetric base aggregator

Documentation

User Manual

Installation

To install type:

$ pip install wowa

Usage of owa( x, w)

from wowa import owa

Callback function if sorting is needed in general

Parameters

Input parameters:

Input parameters: 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wowa-0.50.tar.gz (410.3 kB view hashes)

Uploaded Source

Built Distribution

wowa-0.50-cp39-cp39-macosx_10_9_x86_64.whl (25.2 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page