SA-Kenan/04_Spurerkennung/dev/dev_calc_mean_of_points.py

21 lines
290 B
Python
Raw Normal View History

2022-05-09 20:30:26 +02:00
# -*- coding: utf-8 -*-
"""
Created on Sun Mar 27 09:28:09 2022
@author: Kenan
"""
import numpy as np
from matplotlib import pyplot as plt
#p1 = (1,2)
#p2=(3,4)
# dritter wert ist farbe von led
points = np.array([[1,3,5],
[2,4,3]])
mean = np.mean(points[:,0:2],1)