Forums

Probabilistic Adder

Started by Unknown October 10, 2005
hi all,

I would like to know if probabilistic adders are possible in matlab. Meaning that I want to make an adder which gives correct results ( adding of two nos) with certain probability, say 0.9. or would like to assign certain probabilistic distribution for the adder...might be gaussian....according to which the adder should behave.

Any suggestions are welcomed and appreciated,

Thank you
Abhay


Maybe something like the following will work:

a) a = x1 + x2
b = x1 - x2; Note: b = a only if x2 = 0 (that is a special case you need to
handle).

b) Now generate 1s and 0s with 1s being generated with whatever probability
you need the adder to be correct (say 0.9)

c) Output = a if 1 is generated and output = b if 0 is generated.

x2 = 0 is a special case that you will have to handle separately.

Does that work for what you are trying to do? Incidentally...why would you
need something like this?

Nandan

On 10/9/05, abhay_matlab_in@abha... <abhay_matlab_in@abha...> wrote:
>
> hi all,
>
> I would like to know if probabilistic adders are possible in matlab.
> Meaning that I want to make an adder which gives correct results ( adding of
> two nos) with certain probability, say 0.9. or would like to assign
> certain probabilistic distribution for the adder...might be
> gaussian....according to which the adder should behave.
>
> Any suggestions are welcomed and appreciated,
>
> Thank you
> Abhay >