measure

How can I measure volatility?

I am trying to determine the volatility of a rank. More specifically, the rank can be from 1 to 16 over X data points (the number of data points varies with a maximum of 30). I'd like to be able to measure this volatility and then map it to a percentage somehow. I'm not a math geek so please don't spit out complex formulas at me :) I...

Flex Custom UIComponents

I have created a graph component in AS3 which extends UIComponent. I created an mxml component which is just a Label. The idea is to use the label component to show the values on the graph when you hover over points. I have tried two approaches. Create the Label component using ClassFactory inside the graph so it gets created in the g...

JQuery How-strong-is-your-password bar

Is there a jQuery project out there, that create on of these "Password-strength-meters" right by a password box and updates the strength-bar when something is typed into the field? Do you know any good ones? ...

Measuring online time on website

Hello! I would like to measure how much time a user spends on my website. It's needed for a community site where you can say: "User X has been spending 1397 minutes here." After reading some documents about this, I know that there is no perfect way to achieve this. You can't measure the exact time. But I'm looking for an approach which...

SQL 2008 - MDX Leaf Level Calculation with Parent Aggregates

What is the optimal way to create a calculated measure to compute a custom variance formula (I cannot use the default Variance function because it does not accommodate custom weights). So the leaf level formula will have 2 components one component will be a fact at the leaf level and the other component will be a parent aggregate at vari...

Measure String inside RichTextBox Control

Hi All Can somebody please explain how I would go about measuring the string inside a richtextbox control so that the I can automatically resize the richtextbox control according to its content? Thank you Edit: I've thought about it, and since the below answer won't work if there are different fonts in the RichTextBox Control, what i...

Cosine Similarity Measure: Multiple results

My program uses clustering to produce subsets of similar items and then uses the cosine similarity measure as a method of determining how similar the clusters are. For instance if user 1 has 3 clusters and user 2 has 3 clusters then every cluster is compared against each other, 9 results using the cosine similarity measure will be produc...

How to calculate bandwidth consumption for a Hosting Account using C# in ASP.Net Application?

HI all, I am working on SaaS Hosting Software. a large number of sites are hosted on the server. I am trying to calculate bandwidth consumption, (bytes transferred in and out) using C#, described Here using the MS Log Parser. In the above case, if the log files are deleted by the user or any administrator even, the bandwidth calculatio...

How do I measure the size of a TextBlock in WPF before it is rendered?

I have a WPF DataTemplate with two TextBlock controls (stacked) and then some other elements underneath. Due to some complicated layout code, I need to know the height of the two TextBlock elements so that I can draw some fancy connector lines, and line up other controls, etc. If I know the text that's going into the TextBlocks, and I ...

iPhone SDK measure frequency over iphone mic

Hello, I need a way to get the inout from the microphone and determine the the average frequency. Is there a library or something to handle this? Thanks ...

Measure the run time in pascal program

Hi Please, I need to measure the search time in my pascal program in order to measure the performance efficient.. if there is any function or code to measure the search time? thanks ...

Android: Measure Size of View before rendering

I have a TextView that displays text that changes and run time. I want to use the View.getLineCount() method to see how many lines the TextView takes up and do different functions accordingly. The problem is I need to determine the number of lines the TextView takes up in the same method that needs to know how many line it takes up. I ha...

Measuring code complexity of functional language and imperative language

What is the best way of comparing code complexity of functional language and imperative language? In my case I have to compare complexity of certain programs written in F# and C++. As for now as a code quality measure I am using lines of source code. ...

Measure/Arrange Of Grids with SharedSizeGroup

There seems to be a bit of an issue with two grids containing elements specified in a certain way, and the SharedSizeGroup. This question is in response to an earlier question from user D.H. I attempted to answer. Forgive the length, but it helps to demonstrate the problem visually. His original question asked why two grids with a Sh...

Measure execution time in C#

I want to measure the execution of a piece of code and I'm wondering what the best method to do this is? Option 1: DateTime StartTime = DateTime.Now; //Code TimeSpan ts = DateTime.Now.Subtract(StartTime); string elapsedTime = String.Format("{0:00}:{1:00}:{2:00}.{3:00}", ts.Hours, ts.Minutes, ts.Seconds, ts.Millisecond...