Show newer

@regehr

I'm not sure if that's anyhow fast, but you could perform the comparison (ending with an all-ones byte where it succeeded and all-zeroes elsewhere), AND it with a vector that has (2^i)-i in i-th position, OR it up, add 1, and use any of the scalar ways of figuring out which power of two that is.

(Alternatively, have the second vector have 2^i in i-th position, AND it with first, add them up and use a scalar way to figure out which is the highest bit set.

@adrian @regehr

Doesn't it do that in every vector element independently?

@mark

Your argument (modulo the part about traces being left everywhere) applies off the Internet too, right? (Or are the 3 people purely a metaphor for machines?)

@acb @m @cstross @GossiTheDog

I'm confused what it would do upon detection: it would have to substitute something in place of the real imagery. What would that thing be and how would it keep it consistent for (a) various rotations (b) various objects placed behind the object being imaged?

I could imagine this being easier to pull of with CT, but Vidisco (based on a single glance on their website) seems to sell imaging devices that have a single emitter and a single 2d sensor.

@mcc you might be amused by the diminutives (kruczek[1], kruczątko -- this word seems to have surprisingly few of them) and to know that biały kruk (white crow) means a rare old book.

[1] which also means fine print or gotcha

@mjg59

The feature might be logically impossible to implement correctly though.

@temptoetiam@octodon.social @_thegeoff

On shallow enough angles you get more reflection (and maybe even more reflection than scattering). This gets exploited by en.wikipedia.org/wiki/Wolter_t

I actually realised now that I don't understand why the angles need to be shallower for gamma (Fresnel equations imply that reflectivity for a given direction and polarisation of beam depends only on refractive index -- with no reflection at all for equal refractive indices -- and in the around-visible range refractive indices tend to grow with decreasing wavelength).

@eoaiuastwg Does fellow have different connotations or is it not gender-neutral (or both)?

@b0rk

And if you have a directory with a colon in its path (a totally legit character for filenames), you are screwed.

@isomer

There's something simple that works that escapes me this moment. Just one comment: if you get it via a soundcard-like input you get real values, because you shifted it to baseband and IIUC lost the distinction between negative and positive frequencies. If it was shifted s.t. carrier wasn't DC you'd IIRC be able to retrieve the expected complex signal (because carrier-eps and carrier+eps are distinguishable frequencies).

@isomer

Yes. And that isn't affected by components of the signal of sufficiently different frequencies (with the "sufficient" distance being on the order of magnitude of 1/sampling window).

@isomer

Ah, and you need to have these be counterrotating (i.e. flip the sign of time in quadratureXXX definitions).

The reason that works is that if you have a spinny thing that spins significantly more than once during your sampling period, the value of the spinny thing will average to zero. If the spinny thing makes much less than one revolution, the average will be close to something on the unit circle. So, for a signal that's a single sine wave this should work well to detect whether its frequency is close to the given frequency (up until the point when aliasing becomes a problem -- which is when the spinny thing spins at least ~once between two adjacent samples).

It also works for arbitrary signals because everything up to the point where you take the absolute value is linear, and all the uninteresting signals contribute ~0.

@isomer

No, absolute value of the mean rather than mean of the absolute value.

@isomer

Don't you mean "pointwise multiply" when you say convolve? (Then, the _resulting signal_ would average out to 0 if the sine was absent and to a complex number with absolute value prop. to sine's strength in the original signal and arg indicating the phase offset. Note that this is about the average of the signal and not the absolute value of the signal.)

@isomer

Why do you want RMS of a complex signal? What is the physical thing you are trying to model?

ISTM that the transformation that does to bodies of async functions to split them into pieces-between-await-calls requires unsafe blocks (if we hold a ref from one block to another, the ref remains valid only by virtue of !Unpin around its target and so we start relying on things that cannot be expressed in the type/lifetime system for safety).

Is there a macro library/something that would allow me to do something similar _without writing unsafe myself_?

@isomer

Yes, magnitude(mean) != mean(magnitude).

Mean of complex numbers is useful or not in a very contextual way :) (e.g. see why the Fourier basis is linearly independent).

It seems that numpy is slightly silly and your options for computing squared norm is either np.real(x)**2+np.imag(x)**2 or np.abs(x)**2.

@isomer

Isn't `x**2` literally the square, which will be a complex value that just rotates twice as quickly?

@_thegeoff

Do you need a dome, or just a room of any convex shape with high enough ceiling? Parallax shift rates (i.e. angle change per head position linear change) are inversely proportional to distance, so the shifts should be continuous but not necessarily smooth for a non-dome ceiling. I'm not sure what's the threshold for noticeability.

Show older
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.