Making a Distribution from a range

조회 수: 1 (최근 30일)
Chris Dan
Chris Dan 2020년 9월 4일
댓글: the cyclist 2020년 9월 5일
Hello,
I want to make a range of numbers such that these two vectors come in them.
Y =[0.95;0.96;1.88;1.88;1.85;1.85;1.75;1.75;1.65;1.58];
Y =[1;1;1.31;1.31;1.89;2;1.45;1.42;1.95;1.98];
It could be a normal range or binomial or logistic range of numbers. The range of Y is from
Y =[1;1;2;2;2;2;2;2;2;2]; % max Y
Y = [0.5;0.5;1.25;1.25;1.25;1.25;1.225;1.25;1.25;1.25] % min Y
Random number generator is not really helpful, because there is no prediction what number will come next..
ub =[1;1;2;2;2;2;2;2;2;2];
lb =[0.5;0.5;1.25;1.25;1.25;1.25;1.225;1.25;1.25;1.25]
Y = lb + (ub-lb).*rand(10,1)
  댓글 수: 1
the cyclist
the cyclist 2020년 9월 5일
Your question is not very clear to me. You are referring to four different variables as Y:
  • the minimum value of Y (an input variable?)
  • the maximum value of Y (an input variable?)
  • the two output variables, both referred to as Y
This is very confusing to me.
Is the following correct?
  • You have an input vector of the minimum values. Call it Y_min.
  • You have an input vector of the maximum values. Call it Y_max.
  • You want to generate one (or more?) output vectors from these. Call one of those Y.
What you want the output to look like is stll very unclear. You say you don't want the vectors to be random. But you don't clearly describe what you do want them to be.
We need more information, to help you.

댓글을 달려면 로그인하십시오.

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by