由买买提看人间百态

topics

全部话题 - 话题: functio
1 (共1页)

发帖数: 1
1
来自主题: Military版 - Breast cancer 'linked to bra size'
大奶子有惊喜
Women with larger breasts are more likely to develop breast cancer, scientis
ts believe
A study of more than 16,000 women found those with a larger bra size were at
greater risk of the disease.
The link could be down to the sex hormone oestrogen that can trigger the gro
wth of mammary glands and tumours.
The researchers found seven genetic factors significantly associated with br
east size - three of which are strongly correlated with mutations already li
nked to breast cancer.
Dr Nichola... 阅读全帖
z*****a
发帖数: 9790
2
来自主题: Automobile版 - 车子是否耐用才是真正决定安全性
Volkswagen said today that although an electronic malfunction or a lack of o
il pressure may result in a power interruption, steering and braking functio
ns wouldn’t be affected. That means that even if the car loses power on the
road, the driver would be able to safely stop the car, it said.
恭喜你,你轻而易举的解决了vw的recall问题,“踩油门”
z*****3
发帖数: 15515
3
来自主题: Automobile版 - 车子是否耐用才是真正决定安全性
德托的最大特点:convenient memory loss

o
functio
the
z*****a
发帖数: 9790
4
来自主题: Automobile版 - 车子是否耐用才是真正决定安全性
不过我觉着,在高速上突然失去动力,在技术高超的德粉驾驶员手里,还是很安全的,
大不了滑行到路肩嘛。比起刹不住的丰田,还是安全十八条街的。

o
functio
the
h**z
发帖数: 9751
5
来自主题: Automobile版 - 车子是否耐用才是真正决定安全性
你阅读障碍巴?
你问故障是什么,我给你描述一下而已。我什么时候解决问题了?解决问题的是大众召
回。

o
functio
the
a******g
发帖数: 318
6
【 以下文字转载自 ebiz 讨论区 】
发信人: asihuang (asihuang), 信区: ebiz
标 题: 10个包子弱弱问 这个概率密度函数(Probability density function)怎么求
发信站: BBS 未名空间站 (Mon Aug 4 18:18:55 2014, 美东)
实在不好意思问老板,来这里高手如云的地方问问?
假设有一个连续函数h:
h(x,y)=x^2+y^2+2x,
其中x=[0 1],y=[0,1].
(其实h是surface height,当然,它是什么不重要)
请问一下h的概率密度函数(Probability density function)怎么求?
我想知道理论解(closed-form expression)怎么求,不要让我用matlab离散方法做。
10包子准备奉上给第一个解答的,谢谢。
m*****h
发帖数: 2292
7
google下function of two random variables
M*P
发帖数: 6456
a******g
发帖数: 318
9
f(x,y) = 3*(x^2+y^2+2x)/5
3楼的解答貌似不对
e********r
发帖数: 2352
10
MATLAB可以对函数求积分,定义x, y为变量,
syms x, y; int(), 有变量范围,这不是离散吧。
M*P
发帖数: 6456
11
为什么不对?

★ 发自iPhone App: ChineseWeb 7.8
a******g
发帖数: 318
12
我其实要求一个h的概率密度函数,f(h).
另外 3楼那个f(x,y)貌似在定义域内积分也不等于1。
谢谢。
h*********e
发帖数: 56
13
来自主题: JobHunting版 - 一道面试题
抛砖引玉,我觉得这个有点像circular buffer.
1) how to manage memory:
Maintain an array of Messages and HEAD and TAIL index. add from HEAD, remove
(when time expires) from TAIL. When HEAD + 1 == TAIL, it's full. When HEAD
== TAIL, it's empty. When HEAD or TAIL equals SIZE, reset to 0.
2) timer:
In the constructor, register timer signal handler, which expires after N
milliseconds. After that, in every one milliseconds, remove all messages
added in N milliseconds before, by TAIL++.
3) efficient interface functio
s*****y
发帖数: 897
14
Done's code is better.
void reversePrint(Node * head){
if(!head){
cout << "the end ..." << endl; // print some message here if needed..
.
} else {
reversePrint(head->next);
cout << head->data << endl;
}
}
Suppose you write this function and this function is very very long. Also, m
aybe there are a lot of #ifdef, #endif inside this function to support multi
ple platform. People look at this kind of code often get loss.
Then later on, another engineer jump in and m... 阅读全帖
S**I
发帖数: 15689
15
☆─────────────────────────────────────☆
careerchange (Stupid) 于 (Sat Jun 4 20:25:58 2011, 美东) 提到:
void reversePrint(Node* head) {
if(head=NULL) {
cout << "Empty List. No node to print." << endl;
return;
}
if(head->next=NULL) {
cout << head->data << endl;
return;
} else {
Node* temp=head;
head=temp->next;
reversePrint(head);
cout << temp->data << endl;
return;
}
}
☆─────────────────────────────────────☆
speeddy (Wade) 于 (Sat Jun 4 20:30:33 ... 阅读全帖
s******d
发帖数: 424
16
来自主题: JobHunting版 - g家店面面经,求bless
是不是需要用priority_queue 保存 pair ,还应该用最小堆
RunSchedule 这样写可以吗
void RunSchedule()
{

while(true)
{
lockqueue.lock();
if(!runningtasks.empty())
{
// get all expired task, save functio* in a queue
// start another thread and pass the queue to it
}
lockqueue.unlock();

sleep(100);
}
}
b*********r
发帖数: 7139
17
zan!!

。重点是他谈的都是就事实来说话,不是光说你牛啊,牛啊牛。所以这样非独立也就有
power了,还有就是讲detail,这样贡献就很清晰了。我block了一些个人信息,但最大
可能的保留了原文,基本到了可以被人肉的地步,但只要对后来人有用,被人肉了也在
所不辞
immunologist who has made significant contributions to our understanding of
immunosenescence --- the decline in immune responsiveness that occurs as
part of aging. Dr. Genegun’s current research position is in the Department
of AA at BB Medical School, where he has been a major researcher for many
years. I am a Professor of AA at BB Medical School, having receiv... 阅读全帖
c****K
发帖数: 997
18
来自主题: NCAA版 - 鲁猴子是second mile board member
鲁猴子的声明
http://espn.go.com/college-football/story/_/id/7214183/statemen
Former coach and current ESPN analyst Lou Holtz has been referenced as a boa
rd member of Second Mile, a nonprofit organization that former Penn State as
sistant coach Jerry Sandusky founded. The following is his statement in rega
rds to his participation:
It is obvious I do not know the facts concerning the disaster at Penn State.
But, I am frustrated and mad. I always had great respect for Joe Paterno an
d Jerry Sandusky. I... 阅读全帖
o********s
发帖数: 971
19
来自主题: CS版 - 贴一道take home的面试题

pointer
so that you can have a totally new object with data belongs to yourself.
otherwise, you MIGHT (depends on your structure) end up with some pointers
to the previous data.
i would use both if you want to impress them.
1. create a linked list to store all the data in sequence;
2. create an array to store all the pointers so that you can use index
number to access these data;
3. create a hash list (array of list)
4. finally, you can create a search function that is based on the hash
functio
B*****g
发帖数: 34098
20
1. When you ask oracle question, let us know your oracle version.
2. When you see an error, let us know the error message.
3. You create a function, but you did not return any value from your functio
n.
4. You have a binding variable in your cursor, but I do not see anywhere you
bind the value. try "open cursor_bp for sqlstr using title_id".
5. If still not work, post again.
e*******l
发帖数: 55
21
来自主题: Programming版 - STL里面#include的问题
SGI 网站上好像没有提到应该 include 什么东西,比方说,swap() 应该是在 functio
nal, numeric, 还是algorithm 里面。大家都是上哪里找的呀?
c*****t
发帖数: 1879
22
来自主题: Programming版 - STL里面#include的问题
Dinkum Reference
http://www.dinkumware.com/manuals/

functio
r*********e
发帖数: 29495
23
DSP development. I thought this function should be included. However, when I
tried to call pow function, there is linking problem regarding this functio
n.
X****r
发帖数: 3557
24
是你的库或者base image用得不对吧?其它标准数学函数能用吗?

when I
functio
l*****s
发帖数: 2109
25
我用jade解析中:所有得特殊字符均不认。
jade:C:/DocBook/docbkx412/ent/iso-tech.ent:69:19:E: "X2259" is not a functio
n name
到ent中改“&#x” -> “&#”,去掉了x,就好了,怎么回事?
w**l
发帖数: 5
26
I am surprised that these CS guys are so ignorant of Math. If my understanding
is correct, this is almost a high shool level problem. If his ellipse means
the quadratic surface, then just solve the joint equations:
1. (x-x0)'A(x-x0)=1
2. x=x1+t*(x2-x1)
where A is a square matrix, x0 is the center of the ellipse, x1 and x2 are two
points on the line. Plug 2 into 1, it remain to check whether the following
eqaution about t has solution:
[x1+t*(x2-x1)]'A[x1+t*(x2-x1)]=1
which is a quadratic functio
x******i
发帖数: 3022
27
来自主题: Mathematics版 - Re: what's the name for curve of functio

hyperbola?
c*****g
发帖数: 119
x******i
发帖数: 3022
29
来自主题: Mathematics版 - Re: what's the name for curve of functio

恩?难道有陷阱?脑筋急转弯??
c*****g
发帖数: 119
30
来自主题: Mathematics版 - Re: what's the name for curve of functio
thanks, I got it.
b***k
发帖数: 2673
31
来自主题: Quant版 - [合集] Excel中的问题
☆─────────────────────────────────────☆
yuyy (yyy) 于 (Thu Mar 27 18:03:57 2008) 提到:
我想编个程序处理一个Range中的数据,就象Sum(A1:E8)一样,最好可以在Excel中直接
使用。
我的设想是编个VBA function,比如
function myApp(var) as Range
让后把Range("A1:E8")对象作为var输入到我的函数中,
这样我就可以处理里面的数据了
函数的输出也是一个相同大小的Range对象
刚才用VBA试了试,没有成功,是不是这样不行啊?
那应该用什么办法在Excel中可以实现我的想法。
谢谢。
☆─────────────────────────────────────☆
njupeer (np) 于 (Thu Mar 27 19:55:45 2008) 提到:
you can do this:
Function myapp(var....) as variant
myapp = range("A1:E8")
end functio
s*****n
发帖数: 2174
32
你说的这个是有道理的, 我一般都是使用"\r"作为分隔符. 对于绝对大多数的情况, 足
够用了, 而且程序可读性比较强. 当然如果遇上key里面有"\r"的情况, 还是会有问题.
解决的办法不是没有, 不过程序可读性差, 比较晦涩难懂. 比如这样
matA <- data.frame(
key1 = I(c("ab", "ac", "ad")),
key2 = I(c("bb", "bc", "bd")),
var1 = I(c(1,2,3)))
matB <- data.frame(
key1 = I(c("qa", "ab", "ac", "zd")),
key2 = I(c("qb", "bb", "cc", "bd")),
var2 = I(c(1,3,2,3)))
InA.But.NotInB <- function(A, B, by = intersect(names(A), names(B))){
matA <- A[, by, drop = F]
matB <- B[, by, drop = F]
rowAInB <- functio
1 (共1页)