Let $$ \begin{align} ss_{xy} = \sum(x_i - \bar x) (y_i - \bar y) \tag 1 \end{align} $$
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os, sys, re, subprocess | |
group_id = 'com.fr' | |
repo_id = 'znbt' | |
repo_url = 'http://192.168.12.233:8081/repository/znbt/' | |
sample_settings = '''<settings> | |
<servers> | |
<server> | |
<id>znbt</id> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: '3.0.0' | |
info: | |
title: BOMS API | |
description: BOMS API Specification | |
version: "0.1.1" | |
servers: | |
- url: localhost:8080 | |
description: test server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def meta = ''' | |
{ | |
"img": "../../../../static/img/treeImg/project.png", | |
"name": "财务预算", | |
"id": "1510126562947", | |
"open": true, | |
"level": 0, | |
"select": false, | |
"dictoryList": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import numpy as np | |
# based on [Pandas Pivot Table Explained](http://pbpython.com/pandas-pivot-table-explained.html) | |
# basic pivot table function | |
df = pd.read_excel('./sales-funnel.xlsx') | |
df['Status'] = df['Status'].astype('category') | |
df['Status'].cat.set_categories(["won", "pending", "presented", "declined"], inplace=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
import pywt | |
original = pywt.data.camera() | |
noiseSigma = 16.0 | |
image = original + np.random.normal(0, noiseSigma, size=original.shape) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "二次型系统的参数估计和异常检测" | |
output: html_notebook | |
--- | |
二次型系统([Quadratic form](https://en.wikipedia.org/wiki/Quadratic_form))是只包含二次项,不包含常数和一次项的单变量或者多变量系统,例如下面分别是包含1, 2 和 3个特征变量的二次型系统: | |
$$ | |
y = a x^2 \\ | |
y = a x^2 + b xy + c y^2 \\ | |
y = a x^2 + b y^2 + c z^2 + d xy + e xz + f yz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 使用方法: | |
# * 提取文件 `ycz6502.csv` 中所有包含的日期,保存到各自的csv文件中:`./filecutter.sh ycz6502.csv` | |
# * 提取文件 `ycz6502.csv` 中指定日期(2017年6月4日)的数据到csv文件中:./filecutter.sh ycz6502.csv 20170604 | |
sourcefile=$(basename -s .csv $1) | |
if [[ $# -gt 1 ]]; then | |
csvgrep -c time -m $2 $1 > $sourcefile-$2.csv | |
echo "$sourcefile-$2.csv created" |