Skip to main content

Physically based galaxy clustering algorithm

Project description

PBGCA - Physically based galaxy clustering algorithm

Agglomenative clustering algorithm for galaxy clusters considering physical form of galaxy's structures

Clustering algoritm's initial purpose of which was to solve galaxy clustering task. But it can be scaled to solve simillar problem of finding clusters elongated to center of coordinates grid in N-dimentional grid

Installation

pip install pbgca

Get started

How to multiply one number by another with this lib:

from pbgca import Clusterer as PBGCA

#Get your data
data = pd.read_csv('some_data.csv')

# Instantiate a PBGCA object
clusterer=PBGCA()

# Call fit method
clusterer.fit(data)

# Get result of clustering
result = clusterer.labels_

Input Example: 3d coordinates of galaxies in form of np matrix or pandas dataframe (here units: Mpc) Example:

x y z
1 34 0.45
-1 94 -0.322
.. ... ...

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

pbgca-0.1.1.tar.gz (9.3 kB view hashes)

Uploaded Source

Built Distribution

pbgca-0.1.1-py3-none-any.whl (10.2 kB view hashes)

Uploaded Python 3

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