Now, I am design readout circuit from infrared detector. I want to do some sum function and average function. That is to say, first sum current signal from infrared detector signal and then take sixty pecent of average current from summation current.
Join them all into one single line
Use current mirrors to scale by 0.6
Now you have the (60%) sum of them all, if you scale it down 320 times, that's the average
That would give you the result, you need to calculate the error that the current mirrors are introducing to see whether it is feasible or not. Do some numbers and check it
If you control signal is analog then it is quite more difficult. I guess we assumed that control signal is digital.
But you can still use similar approach by implementing A/D and again select the current mirrors. - But it would be discrete again.