Skip to content
This repository was archived by the owner on Jan 15, 2026. It is now read-only.

refactoring - #17

Merged
kevinmichaelchen merged 12 commits into
mainfrom
refactoring
May 20, 2022
Merged

refactoring#17
kevinmichaelchen merged 12 commits into
mainfrom
refactoring

Conversation

@kevinmichaelchen

@kevinmichaelchen kevinmichaelchen commented May 18, 2022

Copy link
Copy Markdown
Owner
  • using money.proto
  • using big.Float for converting Money to/from float64 (unit-tested in money_test.go)
  • unit test for scoring function

Generated here with:

\text{trip_score} = 
100
+ 
\underbrace{(w_c * c)}_{
  \substack{
    \text{expected} \\ \text{payment}
  }
}
+
\underbrace{(w_p * p)}_{
  \substack{
    \text{time to} \\ \text{get there}
  }
}
+
\underbrace{(w_t * t)}_{
  \substack{
    \text{expected} \\ \text{trip time}
  }
}

@kevinmichaelchen
kevinmichaelchen merged commit aa40915 into main May 20, 2022
@kevinmichaelchen
kevinmichaelchen deleted the refactoring branch May 20, 2022 23:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant