Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7954023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T03:18:02+00:00 2026-06-04T03:18:02+00:00

I rewrote entire question to make it clear. I need a type that can

  • 0

I rewrote entire question to make it clear.

I need a type that can hold a stochastic matrix. I need this to be in Java or C# (Java preffered).

I need a built-in type. It could be a class written by someone but a problem is that in my thesis I need reference to everything so it should come from an article, book, etc…

As in stochastic matrix, all elements in a row need to sum to 1, I need a datatype that will guarantee that. I am aware of the fact that a built-in types can’t guarantee that. But is there a type that can guarantee that is we assume that every value calculated is rounded up to e.g. 10 digits?

I also need a reference to a book or article where it is mentioned that this data type can be used for storing stochastic matrices in computer memory.

Is BigDecimal from Java or decimal from C# suitable?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T03:18:04+00:00Added an answer on June 4, 2026 at 3:18 am

    There’s no inbuilt type (in either of those languages) that will satisfy the (reasonably arbitrary) requirement that all the rows sum to 1. Of course, it’s pretty trivial to write this yourself (and in the case of floating points, using the appropriate error margin …).

    I can’t imagine why you need a reference for just saying “the matrix will be stochastic”. If you need to clearly specify the type (for some bizarre reason …) then you’ll have to resort to specifying the algorithm that will enforce the integrity you need (which, obviously, is remarkably trivial.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Rewrote the entire question because evidently it was too vague I have HTML, this
Update: I rewrote the question to make as much sense as possible and provide
somewhat related to: libxml2 from java yes, this question is rather long-winded - sorry.
NOTE: This is an entire rewrite of the previous question. I have a model.
So I rewrote my paths to something like: URL/really/nice/paths/ using mod_rewrite rules like this:
I thought I would rewrite this question (same iteration). The original was how to
I have a quick question i hope you guys can answer, i've got a
History of the problem This is continuation of my previous question How to start
I've been working on this for days and I can't find a proper solution,
I need to take down an entire site, so I want to route everything

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.