Giter Site home page Giter Site logo

python-randomfields's People

Contributors

dubourg avatar xantares avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

python-randomfields's Issues

TypeError

Hello, when I was running this code โ€˜1D_karhunen_loeve_simulation_example.pyโ€™, it reported the following error. I don't understand it. What do I need to do?

D:\anaconda3\lib\site-packages\openturns\func.py in init(self, *args)
1112
1113 def init(self, *args):
-> 1114 _func.EnumerateFunction_swiginit(self, _func.new_EnumerateFunction(*args))
1115 swig_destroy = _func.delete_EnumerateFunction
1116

TypeError: Wrong number or type of arguments for overloaded function 'new_EnumerateFunction'.
Possible C/C++ prototypes are:
OT::EnumerateFunction::EnumerateFunction()
OT::EnumerateFunction::EnumerateFunction(OT::EnumerateFunctionImplementation const &)
OT::EnumerateFunction::EnumerateFunction(OT::EnumerateFunction::Implementation &)
OT::EnumerateFunction::EnumerateFunction(OT::EnumerateFunction const &)

Bugs for polynomial nodes

Hello,

I have tried to used the code for my database and it seems to me that there is an error relating to nodes of polynomials.

    U, W = polynoms.getNodesAndWeights(
        ot.Indices([legendre_quadrature_order] * dimension * 2))

would create nodes U independent of the domain of definition. Thus

    X = np.repeat(scale, 2) * U + np.repeat(shift, 2)

would create X which exceed the domain of definition. In consequence, we would get nan for matrix C.

Could you please try to fix this problem? Thank you in advance.

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.