Indeed. For a sorting algorithm it would be more insightful to show it test the actual property of something that is sorted: every consecutive element is larger than the previous one (or the other way around). You don’t need a sorting function to test the “sorted” property.
Can you elaborate a bit further on what you’d need to do and why? It’s been a while since my electrical courses.
I’ve been trying to measure home power consumption with these plugs (and the ones from IKEA) but I’ve been getting suspicious readings for inductive loads.
I wouldn't bother using a smart plug. The other thing that's real dangerous about them that I didn't really elaborate on is the relay. There's a reason on something like a pump, fridge, AC unit, etc. you'd see a real contactor instead of a relay, and it's because relays are inappropriate and have dangerous failure modes for big loads like that and are typically way too small.
In most real non-resi situations, you'd probably isolate the hot leg and put a good CT (current clamp) on it and read that. The great thing about that is you haven't added anything in the power path for the device, like a shunt which is what most smart plugs use. Current clamps are good for a lot more current (though I guess a proper shunt could do it too). The easiest way to do this in your setting is to find a good UL-listed electrical box with cable glands, a short piece of DIN rail, a male and female plug pigtail, some proper THHN wire and wirenets and a Shelly 50A EM Pro, and just graft the EM Pro into the box and wire it up with it's CT. You've now got something signficantly more durable and probably safer (and correctly specced for the load). I've done other things like using an HV Labjack and some good CTs or other one or few off designs. There's lots of stuff in the commercial/industrial space that does this well but it tends to be $$$. Again, for the sake of my own family, I wouldn't use non-UL stuff (most plugs and things that go in gangboxes that are "smart" aren't UL listed, and MAYBE are ETL) as you who knows how much or how well it's tested.
The IKEA plugs have a tidbit in the manual that says a "motor load" is limited to 300W while a resistive load can reach the full 3680W (at 230V, probably less if you're in a lower voltage country).
Should be fine for modern fridges but older fridges may overwhelm the circuitry.
Yeah. Using the Kalman filter just to determine the position from noisy position measurements really undercuts the capability of the filter to use system physics to estimate the true state.
In one of the most common applications of Kalman filters, autonomous robots (e.g., a robot vacuum or a commercial drone), the filters are around 9 to 12 dimensions.
Right, in addition to the position you usually want the velocity, and sometimes also the acceleration, in all dimensions. More ambitious (or optimistic) practitioners could add more sensor measurements, like gyroscopes.
We designed a processor microarchitecture [1] at the University of Cambridge, inspired by Uncertain<T> (James Bornholt) and related work. In addition to assuming parametric distributions (e.g., Gaussian, Rayleigh), it lets you load arbitrary sets of samples into registers/memory so program values are carried and propagated as nonparametric distributions through ordinary arithmetic.
A spin-off, Signaloid, is taking this technology to market. I'm also researching using this in state estimation (e.g., particle filters).
I agree it could be clearer but as a general rule, if you find an interpretation under which the question doesn’t make sense, try considering another interpretation.
That’s nice. I’m interested in why you went for a complementary filter specifically, if it was enough for your purpose or just the first one you tried out. (I see you reference the ahrs package where there are also implementations for other attitude estimators.)
Even in that scenario, what would stop the likes of OpenAI to instead throw 50M+ a day to the new way of doing things and still outcompete smaller fry?
The fastest away to acquire the know-how to do for Big Co is to get the talent who have spent the years in building the new tech.
Poaching, acquihirng or acquisitions and the myriad modern forms we are seeing today have been the tools and will not change.
Owners and beneficiaries of the capital do not change, but that is an artifact of our economic system and is much larger a socio-economic discussion beyond the scope of innovation and research