Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add API for scenario distribution Zipfan, Uniform #607

Closed
3 tasks done
AntyaDev opened this issue Jul 25, 2023 · 0 comments
Closed
3 tasks done

Add API for scenario distribution Zipfan, Uniform #607

AntyaDev opened this issue Jul 25, 2023 · 0 comments
Assignees

Comments

@AntyaDev
Copy link
Contributor

AntyaDev commented Jul 25, 2023

  • ZipFan
  • Uniform
  • Multinomial

API:

var scenario = Scenario.Create("scenario", async context =>
{
    var r1 = context.Random.Next(minValue: 10, maxValue: 100);
    var r2 = Zipf.Sample(s: 0.9, n: 100, rnd: random);
    
    var ratios = new[] {0.1, 0.2, 0.7}; // 10%, 20%, 70%
    int[] r3 = Multinomial.Sample(random, ratios, 1);  // r3 = [0, 0, 1] 

    return Response.Ok();
}

Dynamic-workloads

@AntyaDev AntyaDev added the 5.2 label Jul 25, 2023
@AntyaDev AntyaDev changed the title Add API for distribution Add API for scenario distribution Zipfan, Iniform Jul 29, 2023
@AntyaDev AntyaDev changed the title Add API for scenario distribution Zipfan, Iniform Add API for scenario distribution Zipfan, Uniform Jul 29, 2023
@AntyaDev AntyaDev added vNext and removed 5.2 labels Aug 23, 2023
@AntyaDev AntyaDev added 5.5 and removed 5.4 labels Dec 2, 2023
@AntyaDev AntyaDev self-assigned this Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant