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
0
votes
1 answer

How to get accurate data from "post_stories_by_action_type" facebook graph api insight

i am trying to get the count of the page post shares uisng graph api [how many times people shared this page post], based on facebook documentation the graph API request should be like this…
0
votes
2 answers

Fast string retrieval based on metric distance in Java

Given an arbitrary string s, I would like a method to quickly retrieve all strings S ⊆ M from a large set of strings M (where |M| > 1 million), where all strings of S have minimal edit distance < t (some minimum threshold) from s. At worst, S may…
user206428
0
votes
1 answer

Calculate the number of all possible execution paths in a C function

I am desperately looking for a way to easily calculate the number of all possible execution paths in a C function. For example, for the following function I would expect to get a result of 3 (if there is a chance based on the values that 'i' gets…
limp
  • 889
  • 2
  • 14
  • 22
0
votes
5 answers

Function point to kloc ratio as a software metric... the "Name That Tune" metric?

What do you think of using a metric of function point to lines of code as a metric? It makes me think of the old game show "Name That Tune". "I can name that tune in three notes!" I can write that functionality in 0.1 klocs! Is this useful? It…
dacracot
  • 22,002
  • 26
  • 104
  • 152
0
votes
1 answer

"alternative optimization" method for multiple metric learning

During the training process of metric learning, if the cost function is convex, then I can use the gradient descent method, and get the optimal solution. Now, I want to train N(N may be very big, such as 100) metrics from a training set, and one…
0
votes
1 answer

what is the distance function used by the Function Voronoi in scipy.spatial?

I would like to know the closeness metric i.e. euclidean or manhattan distance that is used by the function Voronoi in segregating a given area into Voronoi regions. Is it possible to tell this function to use my own custom metric for decided the…
user42538
  • 101
  • 1
0
votes
2 answers

Convert string with engineer prefix to float

I have a string like '102.3k' I would like to convert this string with an engineer prefix notation to a float number. http://en.wikipedia.org/wiki/Engineering_notation Allowed prefixes are posPrefixes = ['k', 'M', 'G', 'T', 'P', 'E', 'Z',…
working4coins
  • 1,997
  • 3
  • 22
  • 30
0
votes
1 answer

curl_json plugin not sending data (using it to send load balancer metrics)

I've implemented curl_jason plugin to recolect and send LoadBalancer metrics to my RabbitMQ to be graphed in Graphite. Thing is, it's not sending any data, while it is working just fine (and great) with other plugins like memory, cpu, df root,…
marianogg9
  • 184
  • 1
  • 13
0
votes
2 answers

How do I get FoxPro to snap-to-grid on an English report layed out in Metric?

So I've recently had to create a report that emulates a Canadian customs form. The problem is that the report is printed on 11" x 14" paper, but uses a metric layout. As my FoxPro installation is on a machine with US-English units-of-measure,…
Avery Payne
  • 1,738
  • 2
  • 17
  • 31
0
votes
1 answer

performance metric of a software library in WinCE

Is there a way to calculate how many mips consumed by a module (libraray) running on wince? We are developing an audio library and want to give playback in wince (Renesas SH-4A core). How to calculate the number of mips (millions of instructions per…
vidhyarthi
  • 13
  • 2
0
votes
1 answer

Google analytics report

I am trying to do a custom report which contains the Visit Duration, Visits, Pageviews,where the visit duration is divided into ranges 0-10 seconds, 11-30 seconds, etc. My 3 metrics are Visit duration, Visitors, and Pageviews, however the Visit…
bertassa
  • 665
  • 3
  • 11
  • 16
0
votes
1 answer

Can Path Loss be a routing metric?

I have researched about routing metrics for Wireless Networks. However, I have not come across "Path loss" as a routing metric. Since, Path loss is a very important performance factor for networks like Wireless Body Area Networks, is it feasible to…
0
votes
1 answer

Simulation Performance Metrics

This is a semi-broad question, but it's one that I feel on some level is answerable or at least approachable. I've spent the last month or so making a fairly extensive simulation. In order to protect the interests of my employer, I won't state…
jameselmore
  • 442
  • 9
  • 20
0
votes
2 answers

Preselection of probability for approximate string matching

I have recently been tasked with developing an algorithm for checking for duplicate customer records in a database. The DB layout is pretty straightforward: Tens of thousands of rows with fields like FullName, Street, City, ZIP, Phone, etc... A…
namezero
  • 2,203
  • 3
  • 24
  • 37
0
votes
2 answers

Metric/density based clustering/grouping

I have a finite number of points (cloud), with a metric defined on them. I would like to find the maximum amount of clusters in this cloud such that: 1) the maximum distance between any two points in one cluster is smaller a given epsilon (const) 2)…
aZen
  • 223
  • 1
  • 8
1 2 3
8
9