https://github.com/arafat813/js-lttb

减少tick数据中的点数

https://github.com/arafat813/js-lttb

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.6%) to scientific vocabulary
Last synced: 6 months ago · JSON representation

Repository

减少tick数据中的点数

Basic Info
  • Host: GitHub
  • Owner: arafat813
  • License: mit
  • Language: TypeScript
  • Default Branch: master
  • Size: 4.88 KB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created about 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme

README.md

js-lttb

English | 中文


English

Introduction

lttb is a TypeScript implementation of the Largest Triangle Three Buckets (LTTB) downsampling algorithm. It reduces the number of data points while preserving the visual shape of the data, making it ideal for time-series visualization or large dataset processing.

Features

  • Efficiently downsamples large datasets.
  • Preserves the visual characteristics of the original data.
  • Written in TypeScript for type safety and better development experience.
  • Easy to integrate into existing projects.

Installation

bash npm install js-lttb

Usage

```bash import lttb from 'js-lttb';

const originalData = [ [0, 1], [1, 5], [2, 3], // ... more data points ];

const downsampledData = lttb(originalData, 100); // Downsample to 100 points console.log(downsampledData); ```

Contributing

Contributions are welcome! Please open an issue or submit a pull request if you have any suggestions or improvements.

中文

简介

lttb 是 最大三角形三桶(Largest Triangle Three Buckets, LTTB) 下采样算法的 TypeScript 实现。它可以在减少数据点数量的同时保留数据的视觉形状,非常适合用于时间序列可视化或大数据集处理。

特性

  • 高效地对大数据集进行下采样。
  • 保留原始数据的视觉特征。
  • 使用 TypeScript 编写,提供类型安全和更好的开发体验。
  • 易于集成到现有项目中。

安装

bash npm install js-lttb

使用方法

```bash import lttb from 'js-lttb';

const originalData = [ [0, 1], [1, 5], [2, 3], // ... 更多数据点 ];

const downsampledData = lttb(originalData, 100); // 下采样至 100 个点 console.log(downsampledData); ```

贡献

欢迎贡献!如果你有任何建议或改进,请提交问题或拉取请求。

Owner

  • Name: 阿拉法提
  • Login: arafat813
  • Kind: user

GitHub Events

Total
  • Watch event: 1
  • Push event: 2
  • Create event: 1
Last Year
  • Watch event: 1
  • Push event: 2
  • Create event: 1

Packages

  • Total packages: 1
  • Total downloads:
    • npm 10 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 1
  • Total maintainers: 1
npmjs.org: js-lttb

Largest Triangle Three Buckets (LTTB) 下采样算法的 TypeScript 实现,用于减少图表节点数量并保留数据的视觉形状。

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 10 Last month
Rankings
Dependent repos count: 24.9%
Average: 30.5%
Dependent packages count: 36.0%
Maintainers (1)
Last synced: 7 months ago

Dependencies

package.json npm
  • eslint ^8.7.0 development
  • jest ^27.4.5 development
  • typescript ^4.5.2 development