rename to f.go
This commit is contained in:
parent
4c6fb35ac2
commit
4d146dbcfb
|
@ -140,6 +140,8 @@ Note that these sed commands are just hacks, and won't parse e.g., `3.5K` correc
|
|||
- Joint types
|
||||
- Enums
|
||||
- [x] Fix correlation problem, by spinning up a new randomness thing every time some serial computation is done.
|
||||
- [ ] Maintain *both* a more complex thing that's more featureful *and* the more simple multiplication of lognormals thing.
|
||||
- [ ] Clean up error code. Right now only needed for division
|
||||
- [ ] Dump samples to file
|
||||
- [ ] Represent samples/statistics in some other way
|
||||
- [ ] Perhaps use qsort rather than full sorting
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"bufio"
|
||||
"errors"
|
||||
"fmt"
|
||||
"git.nunosempere.com/NunoSempere/fermi/sample"
|
||||
"git.nunosempere.com/NunoSempere/fermi/pretty"
|
||||
"git.nunosempere.com/NunoSempere/fermi/sample"
|
||||
"math"
|
||||
"os"
|
||||
"sort"
|
||||
|
@ -348,8 +348,7 @@ func operateStackWithDist(stack Stack, new_dist Dist, op string) Stack {
|
|||
|
||||
func runRepl(stack Stack, reader *bufio.Reader) Stack {
|
||||
|
||||
|
||||
replForLoop:
|
||||
replForLoop:
|
||||
for {
|
||||
new_line, _ := reader.ReadString('\n')
|
||||
words := strings.Split(strings.TrimSpace(new_line), " ")
|
||||
|
@ -378,7 +377,7 @@ func runRepl(stack Stack, reader *bufio.Reader) Stack {
|
|||
stack.old_dist = INIT_DIST
|
||||
fmt.Println()
|
||||
continue replForLoop
|
||||
/* Variable assignment */
|
||||
/* Variable assignment */
|
||||
case words[0] == "=:" && len(words) == 2:
|
||||
stack.vars[words[1]] = stack.old_dist
|
||||
fmt.Printf("%s ", words[1])
|
Loading…
Reference in New Issue
Block a user