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
| #!/usr/bin/env python3 | |
| """ | |
| Superoptimizer: exhaustively search for 2-op sequences that compute h1/h3/h5. | |
| The goal is to find if any combination of 2 operations can compute: | |
| h1(a) = (a ^ 0xC761C23C) ^ (a >> 19) | |
| h3(a) = (a + 0xD3A2646C) ^ (a << 9) | |
| h5(a) = (a ^ 0xB55A4F09) ^ (a >> 16) | |
| Available operations: |
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
| package frc.robot.lib; | |
| import io.github.jdiemke.triangulation.DelaunayTriangulator; | |
| import io.github.jdiemke.triangulation.NotEnoughPointsException; | |
| import io.github.jdiemke.triangulation.Triangle2D; | |
| import io.github.jdiemke.triangulation.Vector2D; | |
| import java.util.List; | |
| import java.util.Optional; | |
| public class BarycentricInterpolation { |
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 csv | |
| from scipy import stats | |
| # Initialize empty lists to store the data | |
| age_data = [] | |
| roi_data = [] | |
| # Read the data from the CSV file | |
| with open('combined_data.csv', 'r') as file: | |
| csv_reader = csv.DictReader(file) |
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 csv | |
| from scipy import stats | |
| # Initialize empty lists to store the data | |
| age_data = [] | |
| roi_data = [] | |
| # Read the data from the CSV file | |
| with open('combined_data.csv', 'r') as file: | |
| csv_reader = csv.DictReader(file) |