Very simple linear regression
curl -s //www.lauradhamilton.com/data_files/cricket_chirps_versus_temperature.txt | go run main.go > output.svg
2018/06/13 19:57:59 3.3057614388773593*x+24.966014428303183
| package main | |
| import ( | |
| "fmt" | |
| "github.com/jinzhu/gorm" | |
| "github.com/labstack/echo" | |
| _ "github.com/mattn/go-sqlite3" | |
| "github.com/qor/admin" | |
| "github.com/qor/auth" |
| `timescale 1ns / 1ps | |
| ////////////////////////////////////////////////////////////////////////////////// | |
| // Company: Carrier Frequency, Inc. | |
| // Engineer: Jon Carrier | |
| // | |
| // Create Date: 21:33:11 06/17/2011 | |
| // Design Name: | |
| // Module Name: FPGA_2_LCD | |
| // Project Name: | |
| // Target Devices: |
| $ # Make sure you have udev rules for 1d50:602b and 03eb:2ffa, using a group you're a member of (I use "users"): | |
| $ groups | |
| users ... | |
| $ cat /etc/udev/rules.d/10-local.rules | |
| ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="1d50", ATTR{idProduct}=="602b", GROUP="users", MODE="0660" | |
| ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="03eb", ATTR{idProduct}=="2ffa", GROUP="users", MODE="0660" | |
| $ | |
| # You'll need some stuff before we begin: | |
| sudo apt-get install build-essential libreadline-dev libusb-1.0-0-dev python-yaml |
| /* | |
| 8 bit up-down counter. | |
| Based on code from Mojo tutorial | |
| https://embeddedmicro.com/tutorials/mojo/pulse-width-modulation | |
| /\ /\ | |
| / \ / \ | |
| / \/ \ | |
| The CRT_LEN determines the period of the resulting counter | |
| */ | |
| module counter #(parameter CTR_LEN = 27) ( |
| //============================================================================// | |
| // // | |
| // Parameterize Counter // | |
| // // | |
| // Module name: counter // | |
| // Desc: parameterized counter, counts up/down in any increment // | |
| // Date: Oct 2011 // | |
| // Developer: Rurik Primiani & Wesley New // | |
| // Licence: GNU General Public License ver 3 // | |
| // Notes: // |
| //https://www.mikrocontroller.net/topic/454238 | |
| //Beispiel XMega128A1: | |
| // https://www.mikrocontroller.net/topic/328856?goto=4441280#4441280 | |
| // https://www.mikrocontroller.net/topic/478135#5918484 | |
| //https://www.mikrocontroller.net/articles/Drehgeber | |
| //https://www.mikrocontroller.net/topic/454238 | |
| //http://www.dse-faq.elektronik-kompendium.de/dse-faq.htm#F.29 |
| FROM debian:bullseye-slim | |
| USER root | |
| WORKDIR /app | |
| EXPOSE 8080 | |
| COPY dist/fw_interface /bin | |
| COPY .env /app | |
| COPY nwrfcsdk.conf /etc/ld.so.conf.d/nwrfcsdk.conf | |
| # unpack and install nwrfcsdk |
| package main | |
| import ( | |
| "fmt" | |
| "github.com/jinzhu/gorm" | |
| _ "github.com/jinzhu/gorm/dialects/sqlite" | |
| "github.com/qor/transition" | |
| ) |
| Dataframes in Golang | |
| https://github.com/rocketlaunchr/dataframe-go | |
| https://github.com/akualab/dataframe | |
| https://github.com/go-gota/gota | |
| https://github.com/emer/etable | |
| neural networks & machine learning | |
| https://github.com/sjwhitworth/golearn | |
| https://github.com/emer/emergent |
Very simple linear regression
curl -s //www.lauradhamilton.com/data_files/cricket_chirps_versus_temperature.txt | go run main.go > output.svg
2018/06/13 19:57:59 3.3057614388773593*x+24.966014428303183