The problem with "clipping" things -- or in general making it so that if the formula hits a specific barrier it does something instead... is that then the formula doesn't work for all situations. Also again, if a team decides to all put on no fail and get 0s, ln(0) = -infinity
You can't have a "if there is a big gap, use this formula, else use this formula".
This puts processing power to waste and also just mathematically does not look good.
You're also scaling it a bit weirdly, instead why not scale things with accuracy as well? I'm not entirely sure what you mean by "diff" (difficulty? -> because difficulty * accuracy doesn't make much sense...)
Something that would make a bit more sense with your formula would be
and then you scale their points based off of teamA / total, and whatnot.
You can't have a "if there is a big gap, use this formula, else use this formula".
This puts processing power to waste and also just mathematically does not look good.
You're also scaling it a bit weirdly, instead why not scale things with accuracy as well? I'm not entirely sure what you mean by "diff" (difficulty? -> because difficulty * accuracy doesn't make much sense...)
Something that would make a bit more sense with your formula would be
teamA = starDifficulty * Math.log1p(Math.e + 100*acc) * Math.log1p(Math.e + avgA)
and then you scale their points based off of teamA / total, and whatnot.