W3C home > Mailing lists > Public > public-media-capture@w3.org > August 2014

Re: Follow-up questions for details on the "min distance" algorithm

From: Martin Thomson <martin.thomson@gmail.com>
Date: Tue, 5 Aug 2014 10:01:11 -0700
Message-ID: <CABkgnnVZ51_hjYnsc1Rto1pqqtStZjXCPRrmjx9ZPDEdEG-Xag@mail.gmail.com>
To: Peter Thatcher <pthatcher@google.com>
Cc: "public-media-capture@w3.org" <public-media-capture@w3.org>
On 5 August 2014 09:46, Peter Thatcher <pthatcher@google.com> wrote:
> 1. Harald proposed putting in the text something like "behave as
> though this were the algorithm: ...", to make it clear that the
> implementation doesn't have to implement it exactly like that,
> especially when dealing with cameras that have ranges rather than a
> set number of modes.  Is that OK with everyone?

The key here is to prescribe the output so that all browsers produce
the same output based on the same input and starting conditions.  So
whatever editorial convention you need to use in order to achieve
that, I don't mind.

> 2.  Someone (I think Martin) suggested we not give framerate special
> treatment for being greater than the ideal, and make it behave the
> same as width, height, and aspect ratio.  I'm fine with that.  We can
> just remove the "CLOSE_OR_GREATER" bucket.   Should we go ahead with
> that?

Jan-Ivar raised the point.

> 3.  What do we do with ideal values <= 0?  For all the constraints we
> have so far, I think it would be easiest to just reject them with an
> error.  Would that be OK?

An error is good.  You could ignore the value entirely, but I don't
like hiding problems.

> 4.  When we want a "strong match", such as for sourceId, what should
> the value be?  1000000?  "Infinity" has problems.  We really just need
> a "big value".  Is that a "big value" good enough?

In this case, I think that any value more than about 10 will have the
same effect, so pick 100, 1000, 10million or whatever.

> 5.  Some changes to the min distance calculation were suggested, such
> as squaring values.  If you have any, please try it out by forking
> this spreadsheet:
> https://docs.google.com/spreadsheets/d/1amhQGmxq5TeE7R510HXKhqFpc_fU6oiTaGGO7pF_DKg/edit#gid=0
> and applying it to some examples.  If the results look good, please
> let us know the formula change you would suggest.

I don't much mind.

Sum of squares will minimize Euclidean distance.  That is intuitively
better, but I don't care.
Received on Tuesday, 5 August 2014 17:01:42 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:26:29 UTC