Skip to main content

DelaunayExtrapolation

Explanation

Delaunay三角形分割を利用した内挿法です。

  1. 点群をまず準備します。
  2. それをDelaunay三角形分割します。
  3. 点群に含まれない任意の点が、点群の構成する三角形のどれに含まれているかを割り出します。
  4. さらに、三角形の中での相対位置(混合比)を算出します。

scipy.spatial.Delaunayを利用すれば内挿は容易にできますが、三角形に含まれない点にまで外挿することができないので、Delaunayクラスを拡張しました。

「三角形分割」と書いていますが、3次元以上でも問題なく動くはずです。

Installation

$ pip install delaunayextrapolation

Example

test.pyに使用例があります。

Known Issues

  • 一点ずつしか内挿できません。多数の点を同時に内挿できると良いですよね。

Metadata

Release files for delaunayextrapolation 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for delaunayextrapolation 0.3
File Interpreter ABI Platform
delaunayextrapolation-0.3-py3-none-any.whl Python 3 none any Details

Release files / delaunayextrapolation-0.3-py3-none-any.whl

Download URL delaunayextrapolation-0.3-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ff07f98efac48ca6f7282b8830e43e224df401b04cbc0b6546723e4d1ddbe1d
BLAKE2b-256 checksum
How to use checksums
b12578a750c5532002e1c2abb62dbb4e45509885ad2905b576a3cca3763618d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.11.4 Darwin/23.5.0

Release history Release notifications | RSS feed

This release

0.3 This release

1 release file

0.2

1 release file

0.1.2

2 release files

0.1.1

2 release files

0.1

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page