|
t******t 发帖数: 51 | 2 My problem is to test if a set of point in 3D space are uniformly
distributed in a spatial region. I did a google
search and found something like Kolmogorov-Smirnov goodness-of-fit test. My
question is: what is the
computational complexity of running this test in terms of the number of
points N? Are there any C libraries
that implemented this? Links to a tutorial of such tests will also be
appreciated. Thanks. |
|
s*****g 发帖数: 5159 | 3 I do not know this test but I know another test that works nicely.
Supposed you have N points in the 3D unit cube. Make a sqrt(N,3)x sqrt(N,3)x
sqrt(N,3) grid in the unit cube. Test how many grid cube contains more than
1 points and how many contains no point, if this number is higher than some
thresh hold (very low but I forget - can be done through a learning using
Bayesian decision rule), you will see the uniformity of the points by making
use of the geometry information.
This can extend to n |
|
b*****n 发帖数: 685 | 4 【 以下文字转载自 Statistics 讨论区 】
发信人: bullren (牛人), 信区: Statistics
标 题: 请教:用C怎么产生uniform的随机数
发信站: BBS 未名空间站 (Wed Mar 31 05:36:58 2010, 美东)
要做MCMC,盼高手解答,谢谢 |
|
a***r 发帖数: 420 | 5 如果我有个dataset里有n个subject
想要从里面随机选取p%,即int(n*p%)个
在c++里如何实现呢
我开始想得比较简单:
int n;
int p;
main (int argc,char * argv[]) {
int arg=0;
n=atoi(argv[++arg]);
p=atoi(argv[++arg]);
double AOD;
srand((unsigned)time(NULL));
for (int i =0; i
{
AOD=((double) rand() / (RAND_MAX+1)) ;
if (AOD
do something I need
}
}
std::cin.ignore( std::numeric_limits::max(), '\n' );
return(0);
}
可是显然这样我不能控制被选数的sub的数量,只能是个大概
请问版上达人,应该如何修改(或者用别的思路)
实现从n个subject里随机(u... 阅读全帖 |
|
b****t 发帖数: 114 | 6 Hi all,
suppose a sequence of functions {f_n} defined on a countable set of vectors
X
(e.g. integer vectors Z^n), these functions pointwise converge to function f
defined on set X. Is it true that f_n converge to f uniformly?
Thanks,
Beet |
|
y***h 发帖数: 457 | 7 标 题: 请教贴,
在下学艺不精,正经医学院是考不上了,听说米国有个什么军医大学(UNIFORMED SERVICE
啥啥的)比较好混,各位大哥能指点一下吗? 比如好不好考,将来好不好混,收入等.....,
谢了 |
|
|
c********i 发帖数: 586 | 9 谢谢hemocell,请吃包子:)
no scrubs是不是”非鸡心领”?看了很多uniform都写scrubs.
loose-fitting是不是就是那种腰里是橡皮筋,不用皮带的那种?
多谢。 |
|
g*******s 发帖数: 59 | 10 one fair dice, how to use it to generate uniform random variable? |
|
b*****n 发帖数: 685 | 11 你是说rand()/RAND_MAX? 我知道这个,但是产生的好像不是uniform的。你可以试试,
因为rand()产生的数很集中。 |
|
D******n 发帖数: 2836 | 12 where ah? i always though rand() generates uniform distribution |
|
i**4 发帖数: 4 | 13 If X1 and X2 are independent U(0,1), then X=(X1, X2) is uniformly
distributed in (0,1)X(0,1).
dimensional |
|
r***n 发帖数: 6 | 14 cdf(s)=
s<0
=0
0
=s(1-p)
1
=(s-1)p
2
1
uniform variable |
|
|
p*******g 发帖数: 53 | 16 根据你的描述应该是K-Stest吧,那是非参方法,你既然要test是不是uniform应该有参
数方法 |
|
s*w 发帖数: 729 | 17 具体怎么求不知道。感觉解不是唯一的。
问一下: 你怎么生成两个 uniform[0,1] 然后他们还 cor=0.5? |
|
r*******7 发帖数: 1811 | 18 我是用copula做的,先生成multi normal的同时在var-cov matrix中把corr设置成o.5
,再转成multi unif的。
网上可以搜到怎么求joint normal distribution的公式,但找不到怎么求multi unif
的而且uniform之间是dependent的。 |
|
r*******7 发帖数: 1811 | 19 确实是有点糊涂呢,所以上来求教啊。
比如multivariate normal吧,我如果想画一个跟附件里一样的3D图,那3个轴应该分别
是x1 x2 pdf吧,才能画出这样的图,所以需要求一个joint pdf。
如果要画multivariate uniform,我是不是也要知道他们的joint pdf呢?如果不需要
知道,直接拿数据画的画,那不就是2D的scatter plot了嘛?
别嫌LZ脑子笨。。。指点一下,多谢~ |
|
c******o 发帖数: 1184 | 20 Hide
Wiki Loves Monuments: The world's largest photography competition is now
open! Photograph a historic site, learn more about our history, and win
prizes.
Otto Skorzeny
From Wikipedia, the free encyclopedia
[hide]This article has multiple issues. Please help improve it or discuss
these issues on the talk page. (Learn how and when to remove these template
messages)
This article needs additional citations for verification. (December 2016)
This article possibly contains inappropriate or misint... 阅读全帖 |
|
g****g 发帖数: 1828 | 21 In probability theory, the normal (or Gaussian) distribution, is a
continuous probability distribution that is often used as a first
approximation to describe real-valued random variables that tend to cluster
around a single mean value. The graph of the associated probability density
function is “bell”-shaped, and is known as the Gaussian function or bell
curve:[nb 1]
f(x) = \tfrac{1}{\sqrt{2\pi\sigma^2}}\; e^{ -\frac{(x-\mu)^2}{2\sigma^2}
},
where parameter μ is the mean (location of the pe... 阅读全帖 |
|
c****g 发帖数: 37081 | 22 a beret $11.90 vs a patrol cap $6.50
貌似议员老爷们还曾通过过决议禁止用TB生产的beret。
体制问题!
一定是体制问题!
WASHINGTON (AFP) – The US Army is abandoning the beret, after a failed 10-
year experiment.
The black beret, which proved deeply unpopular with American soldiers, will
be replaced by a patrol cap for everyday wear, US Army spokesman Colonel Tom
Collins said Monday.
The move came after outgoing Army chief of staff, General Martin Dempsey,
asked the army's sergeant major "to go out and talk to soldiers across the
forc... 阅读全帖 |
|
b*****e 发帖数: 14299 | 23
居然有争议说这部自传是虚构的,一大段讨论,自己看吧。
Guy Sajer's book THE FORGOTTEN SOLDIER is rather notorious in the historical
community; the book purports to be the memoirs of an Alsatian who served
with the Division for the last years of the Second World War. Much has been
written on the subject of whether or not the book is a true story or not.
Two articles are presented here, plus an exchange of letters to the editor
to an American military journal. Those curious may wish to obtain a copy of
their own, and to inv... 阅读全帖 |
|
T******t 发帖数: 458 | 24 此人在FB上揭了警察局这些乱七八糟的黑幕,又是个黑人。留他活口肯定是重要不安定
因素。此人被和谐几率超高。
http://www.huffingtonpost.com/2013/02/07/christopher-dorner-wri
他说的也还挺实在的:拉丁警察对拉丁移民也粗暴。亚裔警察就在旁边看着,这群废物
果然不出所料。
From: Christopher Jordan Dorner /7648
To: America
Subj: Last resort
Regarding CF# 07-004281
I know most of you who personally know me are in disbelief to hear from
media reports that I am suspected of committing such horrendous murders and
have taken drastic and shocking actions in the last couple of days. You are
saying to yourself ... 阅读全帖 |
|
S*********g 发帖数: 24893 | 25 From: Christopher Jordan Dorner /7648
To: America
Subj: Last resort
Regarding CF# 07-004281
I know most of you who personally know me are in disbelief to hear from
media reports that I am suspected of committing such horrendous murders and
have taken drastic and shocking actions in the last couple of days. You are
saying to yourself that this is completely out of character of the man you
knew who always wore a smile wherever he was seen. I know I will be vilified
by the LAPD and the media. Unfor... 阅读全帖 |
|
S*********g 发帖数: 24893 | 26 From: Christopher Jordan Dorner /7648
To: America
Subj: Last resort
Regarding CF# 07-004281
I know most of you who personally know me are in disbelief to hear from
media reports that I am suspected of committing such horrendous murders and
have taken drastic and shocking actions in the last couple of days. You are
saying to yourself that this is completely out of character of the man you
knew who always wore a smile wherever he was seen. I know I will be vilified
by the LAPD and the media. Unfor... 阅读全帖 |
|
S**I 发帖数: 15689 | 27 ☆─────────────────────────────────────☆
sharc (sharc) 于 (Mon Aug 22 15:15:14 2011, 美东) 提到:
刚从G家onsite归来。新鲜面经奉上。
总共5轮,4轮technical interview, 一个thesis discussion。在technical里,有编
程题,有open design。我记得的问题有:
1. 编程题:一堆字符串。找longest common prefix。
我的方法就是找最短的字符串,对它的每个字符,逐个与其他字符串对应位置比较。(
求更好方法)
2. open question: 一堆文件,size差别极大( from KB to many GB). 找出所有内
容相同的文件。
3. 编程题: 有一个observer 类,监视另一个类foo 的成员变量的值,每当那个值被
修改,就要调用 该observer.updated() 方法。需要实现 foo.registerObserver(ob)
, foo.unregisterObserver( ob )... 阅读全帖 |
|
l**h 发帖数: 7994 | 28 追捕进行时,现在LA附近草木皆兵。
愚蠢可耻的LAPD.
From: Christopher Jordan Dorner /7648
To: America
Subj: Last resort
Regarding CF# 07-004281
I know most of you who personally know me are in disbelief to hear from
media reports that I am suspected of committing such horrendous murders and
have taken drastic and shocking actions in the last couple of days. You are
saying to yourself that this is completely out of character of the man you
knew who always wore a smile wherever he was seen. I know I will be vilified
by ... 阅读全帖 |
|
S*********g 发帖数: 24893 | 29 【 以下文字转载自 Military 讨论区 】
发信人: StephenKing (金博士), 信区: Military
标 题: 真正的美国新闻:让美国蒙羞的新闻
发信站: BBS 未名空间站 (Thu Feb 7 23:47:31 2013, 美东)
From: Christopher Jordan Dorner /7648
To: America
Subj: Last resort
Regarding CF# 07-004281
I know most of you who personally know me are in disbelief to hear from
media reports that I am suspected of committing such horrendous murders and
have taken drastic and shocking actions in the last couple of days. You are
saying to yourself that this is completely out of cha... 阅读全帖 |
|
p**********u 发帖数: 15479 | 30 【 以下文字转载自 Military 讨论区 】
发信人: Tashkent (SiempreAqui), 信区: Military
标 题: LA屁地估计是要当场击毙这个前警察
发信站: BBS 未名空间站 (Thu Feb 7 21:48:39 2013, 美东)
此人在FB上揭了警察局这些乱七八糟的黑幕,又是个黑人。留他活口肯定是重要不安定
因素。此人被和谐几率超高。
http://www.huffingtonpost.com/2013/02/07/christopher-dorner-wri
他说的也还挺实在的:拉丁警察对拉丁移民也粗暴。亚裔警察就在旁边看着,这群废物
果然不出所料。
From: Christopher Jordan Dorner /7648
To: America
Subj: Last resort
Regarding CF# 07-004281
I know most of you who personally know me are in disbelief to hear from
media reports that I am suspected ... 阅读全帖 |
|
t**********g 发帖数: 3388 | 31 【 以下文字转载自 Military 讨论区 】
发信人: Tashkent (SiempreAqui), 信区: Military
标 题: LA屁地估计是要当场击毙这个前警察
发信站: BBS 未名空间站 (Thu Feb 7 21:48:39 2013, 美东)
此人在FB上揭了警察局这些乱七八糟的黑幕,又是个黑人。留他活口肯定是重要不安定
因素。此人被和谐几率超高。
http://www.huffingtonpost.com/2013/02/07/christopher-dorner-wri
他说的也还挺实在的:拉丁警察对拉丁移民也粗暴。亚裔警察就在旁边看着,这群废物
果然不出所料。
From: Christopher Jordan Dorner /7648
To: America
Subj: Last resort
Regarding CF# 07-004281
I know most of you who personally know me are in disbelief to hear from
media reports that I am suspected ... 阅读全帖 |
|
S*********g 发帖数: 24893 | 32 【 以下文字转载自 USANews 讨论区 】
发信人: StephenKing (金博士), 信区: USANews
标 题: 真正的美国新闻:让美国蒙羞的新闻
发信站: BBS 未名空间站 (Thu Feb 7 23:51:09 2013, 美东)
From: Christopher Jordan Dorner /7648
To: America
Subj: Last resort
Regarding CF# 07-004281
I know most of you who personally know me are in disbelief to hear from
media reports that I am suspected of committing such horrendous murders and
have taken drastic and shocking actions in the last couple of days. You are
saying to yourself that this is completely out of chara... 阅读全帖 |
|
s**********8 发帖数: 25265 | 33 http://en.wikipedia.org/wiki/Electronic_signature
Electronic signature
From Wikipedia, the free encyclopedia
may contain original research. Please improve it by verifying the claims
made and adding references. Statements consisting only of original research
may be removed. More details may be available on the talk page. (August 2008
)
The examples and perspective in this article may not represent a worldwide
view of the subject. Please improve this article and discuss the issue on
the talk page.... 阅读全帖 |
|
T1 发帖数: 4732 | 34 Bogus Chinese-American militia marched in parades
By AMY TAXIN Associated Press © 2011 The Associated Press
April 16, 2011, 3:43PM
LOS ANGELES — They didn't have Army haircuts. Their boots didn't shine. And
their uniforms didn't look right.
U.S. Army veteran Joaquin Lim sensed something was amiss with the troop that
had popped up at civic events in Southern California's Chinese-American
communities. At a flag raising ceremony honoring a Chinese holiday, the
Walnut city councilman stopped on... 阅读全帖 |
|
R*N 发帖数: 2173 | 35 http://www.reuters.com/article/2012/05/01/us-china-politics-gu-
20120501
(Reuters) - A woman at the centre of China's biggest political scandal in tw
o decades, wife of deposed political leader Bo Xilai, had once dressed as a
military commander last year in a bizarre episode that shines new light on t
he collapse of Bo's inner circle.
Bo, ambitious former leader of China's biggest municipality Chongqing, was s
acked in March after police began investigating his wife, Gu Kailai, on susp
icion of ... 阅读全帖 |
|
t**x 发帖数: 20965 | 36 From: Christopher Jordan Dorner /7648
To: America
Subj: Last resort
Regarding CF# 07-004281
I know most of you who personally know me are in disbelief to hear from
media reports that I am suspected of committing such horrendous murders and
have taken drastic and shocking actions in the last couple of days. You are
saying to yourself that this is completely out of character of the man you
knew who always wore a smile wherever he was seen. I know I will be vilified
by the LAPD and the media. Unfor... 阅读全帖 |
|
发帖数: 1 | 37 奥巴马的国防部负责的学校貌似和中国军队有瓜葛
Fox News investigation: DoD-funded school at center of federal probes over
suspected Chinese military ties
Catherine Herridge By Catherine Herridge, Pamela K. Browne, Cyd Upson
Published February 24, 2017 FoxNews.com
Facebook Twitter livefyre Email Print
Undated photo: UMT academic dean J. Davidson Frame, right, salutes his wife,
left, UMT president Yanping Chen Frame.
Undated photo: UMT academic dean J. Davidson Frame, right, salutes his wife,
left, UMT president Yan... 阅读全帖 |
|
d**g 发帖数: 167 | 38 County of Nassau v Levine
2010 NY Slip Op 20305 [29 Misc 3d 474]
July 12, 2010
Kluewer, J.
District Court Of Nassau County, First District
Published by New York State Law Reporting Bureau pursuant to Judiciary Law
§ 431.
As corrected through Wednesday, November 17, 2010
[*1]
County of Nassau, Plaintiff,
v
Samuel M. Levine, Defendant.
District Court of Nassau County, First District, July 12, 2010
APPEARANCES OF COUNSEL
Samuel M. Levine, Long Beach, defendant pro se. John Ciampoli, County
Attorney... 阅读全帖 |
|
o***d 发帖数: 313 | 39 http://www.careercup.com/question?id=12426697
Given a random number generator say r(5) generates number between 1-5
uniformly at random , use it to in r(7) which should generate a random
number between 1-7 uniformly at random.
===========solution:
my solution is the same with this:
>>>>>>>>>
Let f() be the random function that returns a number between (1,5).
Let g() = f() -1; then g is a function that returns a number between (0,4).
Let h() = g()/4; then h is a function that returns a number bet... 阅读全帖 |
|
w*****2 发帖数: 1458 | 40 Regarding CF# 07-004281
I know most of you who personally know me are in disbelief to hear from
media reports that I am suspected of committing such horrendous murders and
have taken drastic and shocking actions in the last couple of days. You are
saying to yourself that this is completely out of character of the man you
knew who always wore a smile wherever he was seen. I know I will be vilified
by the LAPD and the media. Unfortunately, this is a necessary evil that I
do not enjoy but must part... 阅读全帖 |
|
d******8 发帖数: 3017 | 41 MANIFESTO - scrubbed by mainstream media outlets
From: Christopher Jordan Dorner /7648
To: America
Subj: Last resort
Regarding CF# 07-004281
I know most of you who personally know me are in disbelief to hear from
media reports that I am suspected of committing such horrendous murders and
have taken drastic and shocking actions in the last couple of days. You are
saying to yourself that this is completely out of character of the man you
knew who always wore a smile wherever he was seen. I know I ... 阅读全帖 |
|
r*****t 发帖数: 286 | 42 ☆─────────────────────────────────────☆
whistleruk (whistleruk) 于 (Fri Feb 9 15:02:53 2007) 提到:
1。给出uniform()在每次调用gasdev()过程中被调用次数的估计。
double uniform(long *seed);
/* uniform() returns a uniform random variable in (0,1) */
double gasdev(long *seed)
/* Returns a normal random variable */
{
static int iset = 0;
static double gset;
double fac, rsq, v1, v2;
if (iset == 0) {
do {
v1 = 2.0 * uniform(seed) - 1.0;
v2 = 2.0 * uniform(seed) - 1.0;
rsq = v1 * v1 + v2 * v2;
} while (rsq >= 1.0 || rsq = |
|
w*******y 发帖数: 60932 | 43 To all who served - a simple thank you is never enough. We would not be
able to post these deals if it were not for your service.
Two notes before jumping in:
Proof of Military Service. First, most companies require some form of
military ID - including a U.S. Uniform Services ID Card (active/reserve/
retired), Current Leave and Earnings Statement (LES), Photograph in uniform,
be wearing uniform (if your service permits), Veterans Organization Card (e
.g., American Legion and VFW), DD214, di... 阅读全帖 |
|
l****z 发帖数: 29846 | 44 Trump Was RIGHT Again! Police Come Forward and Drop Bombshell About Muslims
09 Dec, 2015 by Terresa Monroe-Hamilton
Police officers in London are now coming to the defense of Donald Trump and
saying that they are frightened to go into certain Muslim areas of London
and that they are virtual Muslim no-go zones. While the rank and file police
are defending Trump, the authorities and elite are trying to tear him apart
. I think I’ll go with the working blokes on this one, thank you very much.
Of co... 阅读全帖 |
|
发帖数: 1 | 45 希拉里满口瞎话,暴徒们就是要推翻法律和秩序,怎么可能和这种暴乱社区重建信任。
不知过两天会把帐又算到川普头上不。
一下为转帖。
by 青蛙姐姐
Hillary Clinton for her remarks a day earlier at a campaign stop in
Pennsylvania declaring that the unrest in Milwaukee over the weekend
demonstrated a need for law enforcement to “rebuild trust” with the
communities it protects.
http://www.breitbart.com/video/2016/08/16/walker-hillarys-remarks-inflaming-situation-milwaukee/
警察怎么和这些罪犯rebuild trust? 怎么去trust?当他们拿枪瞄准你的时候让他随便
打? 当他们要抢要打要吸毒贩毒的时候让他们go ahead do whatever they like?... 阅读全帖 |
|
G******i 发帖数: 5226 | 46 ☆─────────────────────────────────────☆
guangyi ( 光一) 于 (Sat Oct 29 00:10:37 2011, 美东) 提到:
**********************************
M:
phone interview (1 round):
why MS?
biggest challenge
why like coding and algorithm?
what is good code?
your longest code
biggest accomplishment
if you don't want some functions to be modified in java, what to do?
does java allow multiple inheritance?
what does synchronized keyword mean in java?
CEO wants a book, you find it in the system of a nearby bookshop. You ... 阅读全帖 |
|
D*****r 发帖数: 6791 | 47
这句显然是针对基督徒常喊的一个口号而写在剧本里的,没有幽默感……
The General's office in a military station on the east front in Beotia.
An office table with a telephone, writing materials, official papers, etc.,
is set across the room. At the end of the table, a comfortable chair for the
General. Behind the chair, a window. Facing it at the other end of the
table, a plain wooden bench. At the side of the table, with its back to the
door, acommon chair, with a typewriter before it. Beside the door, which is
opposite the e... 阅读全帖 |
|
z**********g 发帖数: 16 | 48 bout “Repulsive particle” hypothesis
Zhuang Yilong
Shanghai Institute of Science and Technology Managemen
Jiading 201800
“Repulsive particle” hypothesis is a new theory of material
action. Contrary to Newton law of universal gravitation, which explains why
an apple on the three falls to the ground, it can be called law of universal
repulsion which explains why an apple grows on the tree. It regards a plank
quantum as a material particle, which is a epulsive particle”
counter... 阅读全帖 |
|
u****n 发帖数: 7521 | 49 【原文-加拿大】Could non-chinese join PLA?
【原文地址】:http://www.sinodefenceforum.com/army/could-non-chinese-join-pla- 4639.html
【发布日期】:2009-8-18
【翻译截止日期】:2010-12-22 02:55:32
【翻译评论数/ 总评论】:80+ / 100+
【翻译作者】:Aville
【联名作者】:
译文导读:这次是友情翻译,接的是日语小翻浅浅的活儿(大家都搞副业),有3
年时间没再怎么碰过英语的我,肯定翻译的不利索,在此恳请各位英语达人不吝赐教,
有错直接往我脸上砸,没事的。
这是一位15岁的芬兰热血少年为加入中国人民解放军而发的帖子,一步步翻下来,最大
的感触是,不懂不要紧,千万不要装B,否则真正的牛人出现,会让你难堪的。帖文中
,bd popeye就是这样一个反面教材。另外,帖子回复的不激动,不上火,不冲动,不
问候别人老祖宗的理性风格也值得我们大家学习,有则改之,无则加勉。
Could non-chinese join PLA?
外籍人士可以加入中国解放军么?
... 阅读全帖 |
|