<< Chapter < Page Chapter >> Page >

mincalct.m Modification of mincalc . Assumes mincalc has been run, calls for new target vectors and performs same calculations as mincalc.

% MINCALCT file mincalct.m Aditional target probabilities % Version of 9/1/93 Updated for version 5 on 6/6/97 % Assumes a data file which includes% 1. Call for minvecq to set q basic minterm vectors. % 2. Data vectors DV. The first combination is always A|Ac.% 3. Row matrix DP of data probabilities. The first entry is always 1. TV = input('Enter matrix of target Boolean combinations ');[md,nd] = size(DV);[mt,nt] = size(TV);MT = 1:mt; rd = rank(DV);CT = zeros(1,mt); % Identification of computable target probabilities for j = 1:mtCT(j) = rd == rank([DV;TV(j,:)]);end ct = find(CT);CCT = TV(ct,:)/DV; % Determination of coefficients for computable targets ctp = DP*CCT'; % Determination of probabilitiesdisp(' Computable target probabilities') disp([MT(ct); ctp]')
Got questions? Get instant answers now!

Independent events

minprob.m function y = minprob(p) calculates minterm probabilities for the basic probabilities in row or column vector p . Uses the m-functions mintable, colcopy .

function y = minprob(p) % MINPROB y = minprob(p) Minterm probs for independent events% Version of 4/7/96 % p is a vector [P(A1) P(A2) ... P(An)], with % {A1,A2, ... An} independent.% y is the row vector of minterm probabilities % Uses the m-functions mintable, colcopyn = length(p); M = mintable(n);a = colcopy(p,2^n); % 2^n columns, each the vector p m = a.*M + (1 - a).*(1 - M); % Puts probabilities into the minterm% pattern on its side (n by 2^n) y = prod(m); % Product of each column of m
Got questions? Get instant answers now!

imintest.m function y = imintest(pm) checks minterm probabilities for independence.

function y = imintest(pm) % IMINTEST y = imintest(pm) Checks minterm probs for independence% Version of 1/25//96 % Checks minterm probabilities for independence% Uses the m-functions mintable and minprob m = length(pm);n = round(log(m)/log(2)); if m ~= 2^ny = 'The number of minterm probabilities is incorrect'; elseP = mintable(n)*pm'; pt = minprob(P');a = fix(n/2); s = abs(pm - pt)>1e-7; if sum(s)>0 disp('The class is NOT independent')disp('Minterms for which the product rule fails') y = reshape(s,2^a,2^(n-a));else y = 'The class is independent';end end
Got questions? Get instant answers now!

ikn.m function y = ikn(P,k) determines the probability of the occurrence of exactly k of the n independent events whose probabilities are in row or column vector P
( k may be a row or column vector of nonnegative integers less than or equal to n ).

function y = ikn(P,k) % IKN y = ikn(P,k) Individual probabilities of k of n successes% Version of 5/15/95 % Uses the m-functions mintable, minprob, csortn = length(P); T = sum(mintable(n)); % The number of successes in each mintermpm = minprob(P); % The probability of each minterm [t,p]= csort(T,pm); % Sorts and consolidates success numbers % and adds corresponding probabilitiesy = p(k+1);
Got questions? Get instant answers now!

Questions & Answers

Is there any normative that regulates the use of silver nanoparticles?
Damian Reply
what king of growth are you checking .?
What fields keep nano created devices from performing or assimulating ? Magnetic fields ? Are do they assimilate ?
Stoney Reply
why we need to study biomolecules, molecular biology in nanotechnology?
Adin Reply
yes I'm doing my masters in nanotechnology, we are being studying all these domains as well..
what school?
biomolecules are e building blocks of every organics and inorganic materials.
anyone know any internet site where one can find nanotechnology papers?
Damian Reply
sciencedirect big data base
Introduction about quantum dots in nanotechnology
Praveena Reply
what does nano mean?
Anassong Reply
nano basically means 10^(-9). nanometer is a unit to measure length.
do you think it's worthwhile in the long term to study the effects and possibilities of nanotechnology on viral treatment?
Damian Reply
absolutely yes
how to know photocatalytic properties of tio2 nanoparticles...what to do now
Akash Reply
it is a goid question and i want to know the answer as well
characteristics of micro business
for teaching engĺish at school how nano technology help us
Do somebody tell me a best nano engineering book for beginners?
s. Reply
there is no specific books for beginners but there is book called principle of nanotechnology
what is fullerene does it is used to make bukky balls
Devang Reply
are you nano engineer ?
fullerene is a bucky ball aka Carbon 60 molecule. It was name by the architect Fuller. He design the geodesic dome. it resembles a soccer ball.
what is the actual application of fullerenes nowadays?
That is a great question Damian. best way to answer that question is to Google it. there are hundreds of applications for buck minister fullerenes, from medical to aerospace. you can also find plenty of research papers that will give you great detail on the potential applications of fullerenes.
what is the Synthesis, properties,and applications of carbon nano chemistry
Abhijith Reply
Mostly, they use nano carbon for electronics and for materials to be strengthened.
is Bucky paper clear?
carbon nanotubes has various application in fuel cells membrane, current research on cancer drug,and in electronics MEMS and NEMS etc
so some one know about replacing silicon atom with phosphorous in semiconductors device?
s. Reply
Yeah, it is a pain to say the least. You basically have to heat the substarte up to around 1000 degrees celcius then pass phosphene gas over top of it, which is explosive and toxic by the way, under very low pressure.
Do you know which machine is used to that process?
how to fabricate graphene ink ?
for screen printed electrodes ?
What is lattice structure?
s. Reply
of graphene you mean?
or in general
in general
Graphene has a hexagonal structure
On having this app for quite a bit time, Haven't realised there's a chat room in it.
what is biological synthesis of nanoparticles
Sanket Reply
how did you get the value of 2000N.What calculations are needed to arrive at it
Smarajit Reply
Privacy Information Security Software Version 1.1a
A fair die is tossed 180 times. Find the probability P that the face 6 will appear between 29 and 32 times inclusive
Samson Reply

Get the best Algebra and trigonometry course in your pocket!

Source:  OpenStax, Applied probability. OpenStax CNX. Aug 31, 2009 Download for free at http://cnx.org/content/col10708/1.6
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Applied probability' conversation and receive update notifications?