Maybe a mapcar function would get what you need. However, you have only specified what to do with one condition. The other condition needs more explanation.
Code:
(mapcar (function (lambda (x)
(if (< x 4.)
4. ;;_ Value is less than 4, therefore set value to 4.0
x ;;_ Return original value
)
)
)
'(0.816176 6.48044 10.7246 10.3981 1.90985
8.48824 1.69765 3.39529 24.2404 1.63235
22.3306 1.50176 14.7075 17.4335 13.3526
13.3526 14.5769 5.8275 1.25691 11.8019
9.30441 7.72103 8.03118 4.35838 2.17103
3.65647
)
)
Result
Code:
(4.0 6.48044 10.7246 10.3981 4.0 8.48824 4.0
4.0 24.2404 4.0 22.3306 4.0 14.7075
17.4335 13.3526 13.3526 14.5769 5.8275 4.0
11.8019 9.30441 7.72103 8.03118 4.35838 4.0
4.0
)