npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@decsys/iaa

v1.1.0

Published

For applying the type-1 Interval Agreement Approach

Downloads

22

Readme

GitHub Build Status npm (scoped with tag)

Type-1 Interval Agreement Approach

This is a modern JavaScript (ES Modules) implementation of the Type-1 Interval Agreement Approach.

Details of the interval agreement approach are within From Interval-Valued Data to General Type-2 Fuzzy Sets.

| | From Interval-Valued Data to General Type-2 Fuzzy Sets | |-|-| | Authors | C. Wagner, S. Miller, J. M. Garibaldi, D. T. Anderson and T. C. Havens | | Published in | IEEE Transactions on Fuzzy Systems, vol. 23, no. 2 April 2015. | | Pages | 248 - 269 | | DOI | 10.1109/TFUZZ.2014.2310734 |

About this implementation

This implementation was developed for use in the DECSYS Project, in which client-side React Components implement the Interval Value Ellipse Scale, and use this code to provide statistical analysis of the results.

Because it is used in DECSYS, it is available on npm, but only as ES modules (which meets the needs of DECSYS Response Components).

Getting Started

npm i @decsys/iaa

import IntervalAgreementApproach from "@decsys/iaa";

const intervals = [[1, 7], [2, 6], [2, 4], [6, 9]];

const fs = new IntervalAgreementApproach();
for (const d of intervals) fs.addInterval(d);

fs.membership(1); // 0.25
fs.membership(2); // 0.75
fs.membership(7); // 0.5
parseFloat(fs.centroid.toFixed(2)); // 4.57

Building

  1. npm i
  2. npm test - Run Jest tests
  3. npm run build - Build the ESM bundle used for the npm package.

Licensing

Overview

This software is primarily licensed under the GNU Affero General Public License v3.0 only (AGPL-3.0-only).

A summary is provided below; the full license text may be found in LICENSE.md.

Other license arrangements may be made as appropriate on request.

Copyright and License Summary

Type-1 Interval Agreement Approach

Copyright (C) 2019 Christian Wagner, LUCID (Lab for Uncertainty in Data and Decision Making)

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.