Questions tagged [metric]

Quoting Wikipedia:

In mathematics, a metric or distance function is a function that defines a distance between each pair of elements of a set. A set with a metric is called a metric space. A metric induces a topology on a set, but not all topologies can be generated by a metric. A topological space whose topology can be described by a metric is called metrizable.

is used in any kind of question related to compute, define, choose a metric, and such.

134 questions
2
votes
1 answer

Android - default strings for metric units?

Are there in Android string values for the metric units? Something like android.R.string.meters --> "meters" in EN / "metri" in IT If not, is there a library for this? Couldn't find anything on the official docs nor on Android Arsenal. Thanks.
ticofab
  • 7,551
  • 13
  • 49
  • 90
2
votes
1 answer

How to compare two homography matrices?

I have given two homography matrices and need to find out whether they describe (nearly) the same projection. Is there a metric which i can use for this problem?
2
votes
2 answers

Easy way to get metric matrix in Matlab

Let's say I have a vector of strings and I wrote a function which find a distance between two strings. I want to get the matrix of distances determined by this function. I know the brute-force way of doing it with loops but is there another…
Macaronnos
  • 647
  • 5
  • 14
2
votes
2 answers

R data.table speed up SI / Metric Conversion

So here's the situation. I've got an 85 Million row table with 18 columns. Three of these columns have values in Metric Prefix / SI notation (See Metric Prefix on Wikipedia). This means I have number like : .1M instead of 100000 or 1e+5, or 1K…
neurozen
  • 1,087
  • 13
  • 19
2
votes
1 answer

sonar plugin : how to get sonar's metric

I'm working on a Sonar project and I have to make a plugin in order to get metrics and to compute them. In order to understand how it works, I'd like to try to do the following examples: Get the value (complexity) and to compute it as a double or a…
FlorianR
  • 23
  • 4
1
vote
1 answer

Windows 7: Change the priority of traffic to wired instead of the wireless connection?

On Windows 7 clients I have to change the metric of the wired network connection to a lower metric than the wireless so traffic is prioritized over the wired connection. Is there a way to do this through a script using powershell? To do this…
resolver101
  • 2,155
  • 11
  • 41
  • 53
1
vote
3 answers

how to measure time to upload a file (from browser to server) in php from the server point of view?

Does php provide api to check multipart/form-data upload rate , or total duration ? I also want to know how does PHP knows about various timeout events from IIS and php.ini settings ?
dan_l
  • 1,692
  • 2
  • 23
  • 40
1
vote
3 answers

Facebook Insights about post

I am trying to retrieve metrics post_impressions_unique, post_consumptions or anything started with a post but Facebook always return empty array for me. Anyone know what is the problem here?
Alvin Lew
  • 11
  • 1
  • 3
1
vote
1 answer

issue about LCOM4 with Weld/CDI?

I'm new for both Sonar and Weld/CDI. I would like your help to advise further about the LCOM4 analyzed result with Weld/CDI. Firstly I create a simple java class as the following: - -------------Source--------------- interface MyInterface1 { …
Charlee Chitsuk
  • 8,847
  • 2
  • 56
  • 71
1
vote
1 answer

how to get AUROC at 5% false positive

How can I get AUROC at 5% false positives. I am not quite sure how to do that, is it possible to get it from full area under the curve or it has to be calculated from validation set?
vishal tewatia
  • 103
  • 1
  • 7
1
vote
1 answer

KNeighborsClassifier change of distance

I would like to change the distance used by KNeighborsClassifier from sklearn. By distance I mean the one in the feature space to see who are the neighbors of a point. More specifically, I want to use the following distance: d(X1,X2) = 0.1 * |X1[0]…
JNYC
  • 31
  • 1
  • 5
1
vote
1 answer

Custom Keras Metric throwing error

While trying to implement Intersection over Union (IoU), I've run into a python/keras error that I can't seem to place. In a seperate file I define the following metric: def computeIoU(y_pred_batch, y_true_batch): print y_true_batch.shape[0] …
Kroshtan
  • 637
  • 5
  • 17
1
vote
0 answers

Python: Drawing bisector between two points in L1 and L∞ metric

I am trying to write a program in Python to draw the bisectors between two points in L1 and L∞ metric. Please find more information about the metrics here. If (x1,y1) and (x2,y2) are the two points, then I feel the equation of the bisector in L1…
gaganso
  • 2,914
  • 2
  • 26
  • 43
1
vote
1 answer

How do I get the number of running instances per docker swarm service as a prometheus metric?

For me it seems impossible to get a reliable metric containing all services and their container states (and count). Using the "last seen" from cadvisor does not work - it is unreliable; there are some open bugs... Using the docker metric I only get…
eventhorizon
  • 2,977
  • 8
  • 33
  • 57
1
vote
0 answers

how to convert decimal degree to metric unit in simulating the moving of an object in c#

i have a simulating of moving object in c#. i have some coordinates and speed(moving force) vector value in every coordinate. all of the coordination are decimal degree like below: lon:57.513958 lat:30.369513 in each point there is two force value…
1 2 3
8 9