Filter löschen
Filter löschen

what kind function of this? Fit Constant Probability?

3 Ansichten (letzte 30 Tage)
uncung fgv
uncung fgv am 29 Okt. 2012
Pfitconst=constProb(p);% Fit function with constant probability
i am searching on Google but harldy find, what constProb or fitconst mean is.
I have a value or function P and p.

Akzeptierte Antwort

José-Luis
José-Luis am 29 Okt. 2012
Bearbeitet: José-Luis am 29 Okt. 2012
constProb is not a built-in function. You can look at the source code yourself
edit constProb
Or you can post it here. Note that just posting some code and asking "What does this do?" is not likely to yield many answers. Asking specific questions might elicit more responses.
  2 Kommentare
uncung fgv
uncung fgv am 29 Okt. 2012
ok i will look it.
uncung fgv
uncung fgv am 29 Okt. 2012
Bearbeitet: uncung fgv am 29 Okt. 2012
this is the whole function:
P=ones(size(n));% Cumulative Probability
p=ones(size(n));% Breakage probability during the stressing with number k;
L=length(n);
r=(1:L)
for m=1:L;
p(m)=n(m)/N;
end;
% p(1)=0.1;
P(1)=p(1);
for m=2:L;
P(m)=P(m-1)+p(m);
end;
Pfitconst=constProb(p);% Fit function with constant probability
figure(1)
plot(r,Pfitconst,'--black',r,P,'*');

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Sachin Ganjare
Sachin Ganjare am 29 Okt. 2012
enum ConstProb {Zero, One, Valid, Invalid};

Kategorien

Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by