eq1.--------------------------------------
eq2.--------------------------------------
eq3.--------------------------------------
#include <iostream> | |
#include <vector> | |
#include<tuple> | |
#include <math.h> | |
#include "matplotlibcpp.h" | |
namespace plt = matplotlibcpp; | |
// -------------------------------------------------------------- |
#include <iostream> | |
#include <vector> | |
#include <tuple> | |
#include <math.h> | |
#include "matplotlibcpp.h" | |
namespace plt = matplotlibcpp; | |
const double omega = 6.0; |
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <math.h> | |
#include <tuple> | |
#include "matplotlibcpp.h" | |
namespace plt = matplotlibcpp; |
version: '3' | |
services: | |
# Define an InfluxDB service | |
influxdb: | |
image: influxdb:1.3.5 | |
volumes: | |
- ./data/influxdb:/var/lib/influxdb | |
ports: | |
- "8086:8086" |
//g++ cpu_collector_json.cpp -o cpu_collector -lboost_system | |
//communication | |
#include <boost/asio.hpp> | |
#include <iostream> | |
#include "json.hpp" | |
#include <stdlib.h> | |
#include <time.h> | |
//system data collector |
import random | |
import time | |
import sys | |
import os | |
import re | |
import json | |
from influxdb import InfluxDBClient | |
import socket |
eq1.--------------------------------------
eq2.--------------------------------------
eq3.--------------------------------------
#include <iostream> | |
#include <vector> | |
#include <cmath> | |
#include <iomanip> // std::setprecision | |
#include "matplotlibcpp.h" | |
namespace plt = matplotlibcpp; | |
//----------------------------------------------------------- |
#include <iostream> | |
#include <vector> | |
#include <cmath> | |
#include <iomanip> // std::setprecision | |
#include "matplotlibcpp.h" | |
namespace plt = matplotlibcpp; | |
//----------------------------------------------------------- |
#include <iostream> | |
#include <tuple> | |
#include <vector> | |
#include "matplotlibcpp.h" | |
namespace plt = matplotlibcpp; | |
//global | |
std::vector<float> interpolated; |