-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sampling over whole area coordinates. (#62)
* sampling over whole area coordinates. * added min_fuel and max_fuel sample params. * fixed names. * sampling pellets over circular areas.
- Loading branch information
1 parent
1ac5910
commit 49b0a35
Showing
3 changed files
with
122 additions
and
44 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
import { getDiamondAreaSample, writePelletsCSV } from "./utils.ts"; | ||
import { | ||
getRingAreaSample, | ||
getDiamondAreaSample, | ||
writePelletsCSV, | ||
} from "./utils.ts"; | ||
|
||
const pellets = getDiamondAreaSample(20n, 30n, 0.15); | ||
writePelletsCSV(pellets, "tests/admin/pellets/sample1.csv"); | ||
const pellets = getRingAreaSample(20, 30, 30n, 80n, 0.15); | ||
//const pellets = getDiamondAreaSample(0n, 9n, 30n, 50n, 0.05); | ||
|
||
writePelletsCSV(pellets, "tests/admin/pellets/circle1.csv"); |
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