Giter Site home page Giter Site logo

Membership Gaussmf about scikit-fuzzy HOT 3 CLOSED

scikit-fuzzy avatar scikit-fuzzy commented on June 28, 2024
Membership Gaussmf

from scikit-fuzzy.

Comments (3)

JDWarner avatar JDWarner commented on June 28, 2024

@NetzerKathrin I can't reproduce this. The operations are carried out floating-point, and even if I go out of my way to give the function integer inputs with a narrow sigma the result is still floating point. This

import numpy as np
import skfuzzy as fuzz

print(fuzz.gaussmf(np.asarray([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], np.int16), 5, 1))

returns

[  1.38879439e-11   1.12535175e-07   1.23409804e-04   1.83156389e-02
   3.67879441e-01   1.00000000e+00   3.67879441e-01   1.83156389e-02
   1.23409804e-04   1.12535175e-07   1.38879439e-11]

Note that with a relatively narrow Gaussian (small sigma) these do get quite small rather quickly. This behavior depends on NumPy, so it should be platform-independent.

Perhaps your display settings for NumPy arrays round instead of displaying scientific notation?

from scikit-fuzzy.

NetzerKathrin avatar NetzerKathrin commented on June 28, 2024

from scikit-fuzzy.

JDWarner avatar JDWarner commented on June 28, 2024

Closing as cannot reproduce, but feel free to reopen with a brief example so I can track it down if you believe this remains an issue.

from scikit-fuzzy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.