Questions tagged [modeling]

Modeling is the constructing and manipulating abstract (mathematical and/or graphical) representations of economic, engineering, manufacturing, social, and other types of situations and natural phenomenon, simulated with the help of a computer system.

Modeling is the construction and manipulation of abstract (mathematical and/or graphical) representations of economic, engineering, manufacturing, social, and other types of situations and natural phenomenon, simulated with the help of a computer system.

2023 questions
18
votes
4 answers

what is the difference between required and Provided interfaces

I know in general : an interface is a reference type, it is similar to a class, that can contain only constants, method signatures, default methods, static methods, and nested types. Method bodies exist only for default methods and static methods.…
Micha agus
  • 531
  • 2
  • 5
  • 12
18
votes
1 answer

How do I draw a switch statement in a graphical design?

Does anyone know how to draw a switch statement in a graphical design? For example: If statement is a diamond shape Loops are a square with a circle inside....? Also is there a technical name for this kind of graphical representation? I have…
user3058983
  • 233
  • 1
  • 2
  • 9
18
votes
4 answers

Modelling / documenting functional programs

I've found UML useful for documenting various aspects of OO systems, particularly class diagrams for overall architecture and sequence diagrams to illustrate particular routines. I'd like to do the same kind of thing for my clojure applications. I'm…
Jim Downing
  • 1,481
  • 12
  • 29
17
votes
7 answers

How should I start playing with 3D?

I'm a developer for just about 6 months now, and since I enjoy programming I've started little programs such as encripters, calculators, tools, stuff to play with DropBox (hehe), stuff that play with bitmaps, drawing graphics, and even a program to…
Marcelo
  • 3,371
  • 10
  • 45
  • 76
17
votes
3 answers

How to fit a random effects model with Subject as random in R?

Given data of the following form myDat = structure(list(Score = c(1.84, 2.24, 3.8, 2.3, 3.8, 4.55, 1.13, 2.49, 3.74, 2.84, 3.3, 4.82, 1.74, 2.89, 3.39, 2.08, 3.99, 4.07, 1.93, 2.39, 3.63, 2.55, 3.09, 4.76), Subject = c(1L, 1L, 1L, 2L, 2L, 2L, 3L,…
Dan Goldstein
  • 24,229
  • 18
  • 37
  • 41
15
votes
2 answers

How to show event in a sequence diagram

I want to draw a sequence diagram and I want to show interaction between user and UI. User as an actor would fill a text box and on text_change event an asynchronous method of BL class would call. In this case is it possible to show text_change…
Vahid Ghadiri
  • 3,966
  • 7
  • 36
  • 45
15
votes
3 answers

What are the advantages of LePUS3 over UML?

When searching online for object oriented concepts such as the composite design pattern I often found them represented in the LePUS3 notation. I am not really familiar with this modeling language. Is it something I should prefer over UML?
Eric
  • 19,525
  • 19
  • 84
  • 147
14
votes
2 answers

Extract formula from model in R

I'm building a function for many model types which needs to extract the formula used to make the model. Is there a flexible way to do this? For example: x <- rnorm(10) y <- rnorm(10) z <- rnorm(10) equation <- z ~ x + y model <- lm(equation) I…
mike
  • 22,931
  • 31
  • 77
  • 100
14
votes
4 answers

Which should be created first ER Diagram OR Class Diagram?

The very first step i created a DFD. Then i moved on to create a Class Diagram. And while doing that i felt that i should create the ER diagram first. As there were many details which could not be captured in a Class diagram. So, my question should…
Rasshme Chawla
  • 1,581
  • 2
  • 13
  • 19
14
votes
1 answer

Interpretation of ordered and non-ordered factors, vs. numerical predictors in model summary

I have fitted a model where: Y ~ A + A^2 + B + mixed.effect(C) Y is continuous A is continuous B actually refers to a DAY and currently looks like this: Levels: 1 < 2 < 3 < 4 < 5 < 6 < 7 < 8 < 9 < 11 < 12 I can easily change the data type, but I'm…
13
votes
13 answers

What diagramming techniques (not tools) do you use during your programming?

What diagramming technique(s) do you use while programming to help you or others understand your program or design. I am not talking about a person's favorite tool, though a good tool probable helps a person greatly with diagramming. My intent in…
John Burley
  • 1,208
  • 2
  • 14
  • 22
13
votes
8 answers

How do you break circular associations between entities?

my first time on the site so apologies if it's tagged incorrectly or been answered elsewhere... I keep running into particular situation on my current project and I was wondering how you guys would deal with it. The pattern is: a parent with a…
Jon M
  • 11,669
  • 3
  • 41
  • 47
13
votes
3 answers

What's the difference of Petri Nets and Finite State Machines?

Both of them represent the different states a system can take. So what is the difference of Petri Nets and Finite State Machines? When do I use Petri Nets, and when do I use Finite State Machines?
LJag
  • 321
  • 2
  • 13
13
votes
7 answers

How to model an amount of Money in Java

Can anybody recommend a class library or a design pattern that models amounts of Money? I guess it should support: multiple currencies a mechanism to indicate the number of decimals math (respecting certain rounding conventions (cfr ie. Banker's…
Jan
  • 9,397
  • 13
  • 47
  • 52
13
votes
1 answer

In an activity diagram, are there two initiating events allowed?

I want to model an activity, where there can be two several initiating events. These events has two several responsible actors. Is it allowed that a UML activity-diagram could have two initiating events and only one end? Could the action-flow be…
martin
  • 2,957
  • 3
  • 25
  • 46