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
| #!/bin/bash | |
| # Default number of Claude instances | |
| N=${1:-10} | |
| # Validate input | |
| if ! [[ "$N" =~ ^[0-9]+$ ]] || [ "$N" -lt 1 ]; then | |
| echo "Usage: $0 [number_of_instances]" | |
| echo "Number of instances must be a positive integer (default: 10)" | |
| exit 1 |
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 typing import Tuple | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| import seaborn as sns | |
| def d_choice_balancer(array: np.ndarray, d: int) -> Tuple[int, int]: | |
| N = len(array) | |
| d_choices = np.random.randint(0, N, size=(d, 2)) |
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 typing import List, NamedTuple | |
| import numpy as np | |
| from scipy.special import gamma | |
| class NDPiSimulator(NamedTuple): | |
| p: int | |
| d: int | |
| num_bins: int |