Giter Site home page Giter Site logo

Comments (3)

mvcisback avatar mvcisback commented on August 21, 2024

Ah I see that domains have been removed for some reason on master (making this somewhat moot).

Searching around I couldn't seem to find a reason for this. Could someone provide a reference or reason?

from traces.

stringertheory avatar stringertheory commented on August 21, 2024

Hi, thanks for opening the issue. We removed domains because people were finding them confusing, and we were finding that they were rarely used. It didn't seem like the minimal value they were adding was worth the confusion in explaining them. Would you mind sharing a more complete use case of how you are using domains and why they are useful? (and perhaps how ugly it would be without them)

from traces.

mvcisback avatar mvcisback commented on August 21, 2024

@stringertheory I am developing a library py-stl for working within Metric Temporal Logic and Signal Temporal Logic.

These are often used to determine if a time series signal meets some specification (for filtering perhaps). For example, one may write G[0, 10]((x > 0) -> F[0, 1](y < -1)) which translates to:

Between time 0 and 10, if x is greater than zero, then within the next 1 time steps y will be less than negative one.

My library would take the two signals x(t) and y(t) and evaluate the above formula. The problem is if x and y are defined on different domains, then the result may not be well defined.

For example, if x.domain = (0, 10), but y.domain = (0, 4), then the above formula is only defined if for all t > 4, x(t) = False.

It's worth noting that I made the design decision to make x and y different TimeSeries objects since it means I can often compress x > 0 and y < -1 quite abit using the compact method. This makes evaluation much more efficent, particularly if one is interested in at what time points a particular formula is True (similar to doing a sliding window and evaluating the formula on the window).

from traces.

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.