21221

четверг, 16 июня 2016 г.

Math.random

http://javascript.ru/math.random

Синтаксис

var randomNumber = Math.random();

Описание, примеры

Заметим, что числа в яваскрипт хранятся в формате с плавающей точкой IEEE 754 с округлением в сторону ближайшего четного. Поэтому иногда, в очень редких случаях, возможна генерация обычно исключенной верхней границы.
Пример: Cлучайное число от 0(включительно) до 1
1function getRandom()
2{
3  return Math.random();
4}
Пример: Случайное число между min и max
1function getRandomArbitary(min, max)
2{
3  return Math.random() * (max - min) + min;
4}
Пример: Случайное целое между min и max
1// использование Math.round() даст неравномерное распределение!
2function getRandomInt(min, max)
3{
4  return Math.floor(Math.random() * (max - min + 1)) + min;
5}

воскресенье, 5 июня 2016 г.

“Precision” parameter: A misnomer

Stephen L. Gillett

Abstract
The parameter K that describes the concentration of paleomagnetic directions about The parameter K that describes the concentration of paleomagnetic directions about their mean is commonly termed the “precision” parameter, a terminology that goes back to Fisher's [1953] original paper. However, it does not measure “precision” as the term is now used in the physical sciences.
“Precision” is a measure of how well a result is experimentally defined [e.g., Bevington, 1960], and this definition is drummed into beginning science students, commonly starting at the high-school level. For paleomagnetic data, however, “precision” in this sense is expressed by a confidence limit, such as a95; thus it depends on N (the number of samples) as well as K. For this reason, more modern treatments of directional statistics instead usually call K the “concentration” parameter, which is a neutral (and natural) geometric description [e.g., Mardia, 1972, 1975; Fisher et al, 1987].
Eos. Volume 74, Issue 49
7 December 1993 
Page 579

суббота, 16 апреля 2016 г.

no comments

распространяется в надежде на ее полезность для прикладной деятельности, но БЕЗО ВСЯКОЙ ГАРАНТИИ УДОВЛЕТВОРЕНИЯ ТРЕБОВАНИЙ, включая и требования соответствия-несоответствия заявленным целям...

пятница, 25 марта 2016 г.

strike and dip

Another way of representing strike and dip is by dip and dip direction. The dip direction is the azimuth of the direction the dip as projected to the horizontal (like the trend of a linear feature in trend and plunge measurements), which is 90° off the strike angle. For example, a bed dipping 30° to the South, would have an East-West strike (and would be written 090°/30° S using strike and dip), but would be written as 30/180 using the dip and dip direction method.

https://en.wikipedia.org/wiki/Strike_and_dip