how can arbitrary row groups can be selected.

1 次查看(过去 30 天)
If A=50; B=100; C=rand(50,100); How can the arbitrary row groups can be selected.
  4 个评论
John BG
John BG 2018-1-3
Hi Prabha
the 'how arbitrary' is equivalent to 'how flat' is the probability distribution you apply to pick samples.
The closer to a uniform 'flat' probability density function the 'more arbitrary' that your samples are.
Also, the longer the samples the lower the probability to repeat them, thence 'more arbitrary' so the amount of rows you decide to take in each sample, as well as the amount of samples also contribute to the randomness of your selection.
Would it be possible for you to add more information like
1.- how many rows do you plan to put in each sample?
2.- is the length of the samples constant, or you plant to take varying amounts of rows each time?
3.- how many samples do you intend to take?
Prabha Kumaresan
Prabha Kumaresan 2018-1-3
编辑:Cedric 2018-1-3
If A =
[1 2 3 4 5;
11 12 13 14 15;
6 7 8 9 10;
21 22 23 24 25;
16 17 18 19 20]
and B =
[ 0 0 41 0 0;
45 0 0 0 0;
0 43 0 0 0;
0 0 0 42 0;
0 0 0 0 44]
Which results in
C =
[0 0 41 4 0;
45 12 0 0 15;
6 43 0 0 10;
0 0 23 42 0;
26 27 0 0 44]
Which indicates to be the goal is adding values to B from A. The rule for this is that in groups of rows the entire column must be either 0 or contain a value. If B on that position is equal to 0, the value is taken from A.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by