Hi Terry,

> As apart of the processing of these numbers, I need to calculate the
> average value, the minimum value and the element position of the
> minimum value in the List.
...
> Vmeas = [3.125,3.122,3.112,3.126]
>
> I need to use numpy to find which element contains that minimum value.

!

    l = [3.125, 3.122, 3.112, 3.126]
    for e, i in enumerate(l):
        print(e, i) # Just to show you could do it yourself.

    if l:
        low = min(l)
        lowi = l.index(low) # First if present multiple times.
        amean = sum(l) / len(l) # Arithmetic mean.
        print(low, lowi, amean)

Cheers, Ralph.

--
  Next meeting: BEC, Bournemouth, Tuesday, 2019-02-05 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk/
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk

Reply via email to