This file contains hidden or 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 pandas as pd | |
from scipy import stats | |
class TwoWayAnovaRM: | |
def __init__(self, data: pd.DataFrame, subject, samples: list): | |
self.data = data | |
self.subject = subject |
This file contains hidden or 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
from matplotlib import pyplot as plt | |
from matplotlib.patches import Ellipse | |
import numpy as np | |
fig, ax = plt.subplots(1) | |
ax.set_aspect('equal') | |
m = np.array([8, 12]) | |
S = np.array([[16, np.sqrt(78)], [np.sqrt(78), 9]]) | |
r = np.random.multivariate_normal(m, S, size=100) # random points to plot |
This file contains hidden or 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
// This code was inspired by https://github.com/rp-rs/rp-hal/blob/main/rp2040-hal/examples/watchdog.rs | |
#![no_std] | |
#![no_main] | |
use panic_halt as _; | |
use rp2040_hal as hal; | |
use hal::pac; | |
use embedded_hal::digital::v2::OutputPin; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 'package:latlong2/latlong.dart'; | |
import 'dart:math'; | |
const f = 298.257222; | |
const r = 6378137.0; | |
const m0 = 0.9999; | |
const n1 = 1 / (2 * f - 1); | |
const alpha = [ | |
1.0, | |
0.0008377318250120707, |
OlderNewer