• We should now be fully online following an overnight outage. Apologies for any inconvenience, we do not expect there to be any further issues.

Height in rectangular

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

Matthiasa

Diamond Member
May 4, 2009
5,755
23
81
I expected more from this forum.

It's been proven more than once that this forum can't do anything related to math and or science. :(

Looking at well the unedited post. It is stating the chance of anything occurring can not be greater than 100%. It then likely has a graph next to is showing some probability density and is pointing at the the probability between those two values equals the area under the graph between those values.
 
Last edited:

K7SN

Senior member
Jun 21, 2015
353
0
0
First you have to understand what a histogram is?
Second you have to figure out the minimum and maximum values in your dataset.
Third you subtract to get the range: Range = Maximum - Minimum.
Fourth you divide the range by the number of bins in the histogram which gives you the width of each bin. binWidth = Range / nBins
Fifth you find the minimum and maximum value of each bin.
Sixth you figure out (one data value at a a time) which bin that element of the data set fits and then
Seven you add a value of one(1) to the bin total of that bin
For (i = 0; i < nBins; i++)
{
binMin = Minimum + i * binWidth (Don't really need this as except for float point problems binMax = binMin[i - 1]
binMax = Minimum + (i + 1) * binWidth
}
Sixth order your Data (Most efficient way)
Seven count the number of data elements in the bin;
j = 0;
For (i = 0; i < nBins; i++)
{
binHeight = 0;
while (OrderedData[j] < bin)
{
binHeight++
j++;
}
} // No I didn't put it in a code box; it is psuedo-code.

Eight now you have height of each bin - now what are you going to do with it. Other than put a count above the bar - that information is trivial unless perhaps you have PhD in statistics working on multivariate weights or such nonsense I think not very much. I wonder how long it would take for a dataset of million values; a billion values; a trillion values; a value for dollar in our national debt; a value for a penny for each penny in our national debt.

I suggest if you actually got past the first step; you've asked the wrong question.

I've given you all the pseudo-code to build a histogram graph out of a basic bar chart. Lockheed Martin gets $120 an hour for me to do that; it took about 10 minutes so $20 in bit coins please :eek: or since this ATOT just have a nice day; i showed you everything you asked - I'm hope you can solve your homework problem from it. Now shoo.
 

sdifox

No Lifer
Sep 30, 2005
100,371
17,931
126
First you have to understand what a histogram is?
Second you have to figure out the minimum and maximum values in your dataset.
Third you subtract to get the range: Range = Maximum - Minimum.
Fourth you divide the range by the number of bins in the histogram which gives you the width of each bin. binWidth = Range / nBins
Fifth you find the minimum and maximum value of each bin.
Sixth you figure out (one data value at a a time) which bin that element of the data set fits and then
Seven you add a value of one(1) to the bin total of that bin
For (i = 0; i < nBins; i++)
{
binMin = Minimum + i * binWidth (Don't really need this as except for float point problems binMax = binMin[i - 1]
binMax = Minimum + (i + 1) * binWidth
}
Sixth order your Data (Most efficient way)
Seven count the number of data elements in the bin;
j = 0;
For (i = 0; i < nBins; i++)
{
binHeight = 0;
while (OrderedData[j] < bin)
{
binHeight++
j++;
}
} // No I didn't put it in a code box; it is psuedo-code.

Eight now you have height of each bin - now what are you going to do with it. Other than put a count above the bar - that information is trivial unless perhaps you have PhD in statistics working on multivariate weights or such nonsense I think not very much. I wonder how long it would take for a dataset of million values; a billion values; a trillion values; a value for dollar in our national debt; a value for a penny for each penny in our national debt.

I suggest if you actually got past the first step; you've asked the wrong question.

I've given you all the pseudo-code to build a histogram graph out of a basic bar chart. Lockheed Martin gets $120 an hour for me to do that; it took about 10 minutes so $20 in bit coins please :eek: or since this ATOT just have a nice day; i showed you everything you asked - I'm hope you can solve your homework problem from it. Now shoo.


I'll just leave this gem here

http://forums.anandtech.com/showthread.php?p=37810701#post37810701
 

K7SN

Senior member
Jun 21, 2015
353
0
0
It's been proven more than once that this forum can't do anything related to math and or science. :(

Looking at well the unedited post. It is stating the chance of anything occurring can not be greater than 100%. It then likely has a graph next to is showing some probability density and is pointing at the the probability between those two values equals the area under the graph between those values.

Off-Topic ain't the forum - suggest software-programming comes closest but there ration of real answers to smart-ass answers there with such a sophomoric posted question would also be few to many (just not as bad as here or P&N). You have to be creative to help the be a smartass at the same time - flame my answer - leave the wan-a-bee serious going-to-bee troll to drown in the morass of flack from out fellow posters.

Seriously Matthiasa - it is just a histogram and the bin height is just a count (which I could have posted if I thought he only merited an answer.)
 

Red Squirrel

No Lifer
May 24, 2003
70,608
13,816
126
www.anyf.ca
The 3 4 5 rule. Measure 3 feet from one corner and mark it, then 4 feet from same corner upwards and mark it, then the two lines should be 5 feet apart. Then you know it's square. Though I find this is not always accurate with 2x4 lumber as they are sometimes slightly curved, so you want to measure from both ends of the rectangular frame and the distance needs to be equal to sqrt(x^2 + y^2). Something like that.
 

Ham n' Eggs

Member
Sep 22, 2015
181
0
0
mind-blown.jpg
WOW fancy! :thumbsup:
I still prefer my method though. It is best to avoid actual math as much as humanly possible. :cool:
 

DrPizza

Administrator Elite Member Goat Whisperer
Mar 5, 2001
49,601
167
111
www.slatebrookfarm.com
I'll actually try to help:

Area = width times height. (Duh.)
Thus, height = area divided by width (again, duh.)
The width is obviously b-a (duh.)
And if the height is 1/(b-a), then...

Damn, I'm stumped. 42?

1 as in 100%
 

Red Squirrel

No Lifer
May 24, 2003
70,608
13,816
126
www.anyf.ca
You also need to calculate how many electrons are in a circle and the delta value of a turtle. Then you can throw those in the formula and conjugate the equation.