From 376192792314b52c8c18813610a7306f24221b60 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Fri, 21 Aug 2020 11:29:43 +0200 Subject: [PATCH] Stuff --- lib/func.py | 7 +++++++ main.py | 1 + 2 files changed, 8 insertions(+) mode change 100644 => 100755 main.py diff --git a/lib/func.py b/lib/func.py index e69de29..00b67d6 100644 --- a/lib/func.py +++ b/lib/func.py @@ -0,0 +1,7 @@ +import numpy as np + +def sigmoid(x): + return 1/(1 + np.exp(-x)) + +def correctFunc(rgb): + return ( rgb[0], rgb[1], rgb[2] ) diff --git a/main.py b/main.py old mode 100644 new mode 100755 index e69de29..4265cc3 --- a/main.py +++ b/main.py @@ -0,0 +1 @@ +#!/usr/bin/env python