GithubHelp home page GithubHelp logo

Comments (2)

tahini avatar tahini commented on July 18, 2024

For exclusive conditional, the randomProbability could be number | [number, number]. In the first case, the number is the probability to get the random widget. In the second, it is a start/end range between 0 and 1. For example if 50% of hh should get q1 and the other 50% q2, q1 would have [0, 0.5] and q2 would have [0.5, 1]. I wouldn't be sure how to handle 0, 0.5 and 1 though... Inclusive or exclusive? If inclusive, 0.5 would get both... Maybe [{value: number, inc: boolean},{value: number, inc: boolean}]?

Anyway, this will require the random values to be kept in a specific path in the responses. This will also be necessary to be able to set the sampling value when in development mode (see https://github.com/chairemobilite/od_mtl_2023/issues/411)

from evolution.

tahini avatar tahini commented on July 18, 2024

But implementing this will greatly reduce the burden of survey developers in the future for such questions.

from evolution.

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.