Skip to main content

Product Kernel Density Visualization (pKDV) algorithm

Project description

MASS: Product Kernel Density Visualization (KDV) Package

This package provides a C++ implementation of a Product Kernel Density Visualization (KDV) algorithm.


Input Data Format

The input data file should be plain text:

n
x1 y1
x2 y2
...
xn yn
  • n = number of data points
  • x and y in meters (or consistent units)

Input Parameters (for Python wrapper or command line)

  • dim : data dimensionality (default: 2)
  • method : algorithm method (0:SCAN, 1:SLAM, 2:MASS_CR, 3:MASS_OPT, 4:RQS_kd, 5:RQS_range)
  • n_x, n_y : number of discrete regions along x/y-axis
  • k_type_x, k_type_y : kernel type for x/y-axis (1:Epanechnikov, 2:Triangular, 3:Uniform)
  • b_x_ratio, b_y_ratio : bandwidth ratio for x/y-axis kernel

Usage

Python Wrapper

from mass_pkdv import run_mass

run_mass(input_file, output_file)

Optionally, pass custom parameters:

run_mass(input_file, output_file, dim=2, method=2, n_x=800, k_type_x=3, b_x_ratio=0.8, n_y=600, k_type_y=3, b_y_ratio=0.8)

Command Line

bin\mass_pkdv.exe data\data.dat data\result.txt

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

mass_pkdv-0.1.1.tar.gz (657.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mass_pkdv-0.1.1-py3-none-any.whl (657.6 kB view details)

Uploaded Python 3

File details

Details for the file mass_pkdv-0.1.1.tar.gz.

File metadata

  • Download URL: mass_pkdv-0.1.1.tar.gz
  • Upload date:
  • Size: 657.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0rc1

File hashes

Hashes for mass_pkdv-0.1.1.tar.gz
Algorithm Hash digest
SHA256 27b84dcc3bdde89f66e2272e8cc4f95ea7dd6e599a417634ebccbf48e522aea1
MD5 c07cbc595204d5861169ab3bcfee8543
BLAKE2b-256 a3951717736a5b443b4b18064ead7737a824c82fc77facf10cdb3777028f5df6

See more details on using hashes here.

File details

Details for the file mass_pkdv-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mass_pkdv-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 657.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0rc1

File hashes

Hashes for mass_pkdv-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 64c1aabb5338b1a3ab8d04c3c25119d1d9511e1b0cecf98a9cabcbd77a80aed8
MD5 5ebc039be237524243c6b7e1fe975959
BLAKE2b-256 72b59c15f6199c62f8a5284bd7c1cb2b3febce545b1311cd1e636acb8a055ffb

See more details on using hashes here.

Supported by

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