Message Boards Message Boards


Use an InputField going with the result of a RadioButon?

Posted 2 years ago
1 Reply
0 Total Likes

I am looking for a solution for a minor but annoying flaw in a program that I made for building a CDF for analysing the properties of accumulations of random numbers. In the CDF I can choose for several types of such accumulations through a number of radiobuttons. With each radiobutton I can make a list that contains the sum of the accummulation in question along with several parameters and quantities that I for instance need for a text above the final chart of the accumulation and some additional special properties of it. Together with each radiobutton for any accumulation with a certain probability distribution the CDF has one or more inputfields for the necessary parameters, such as mean and standard deviation for a normal distribution. My problem is the following: After pushing a radiobutton and then inserting a number in an inputfield that goes with that button, and then hitting Enter or clicking with the mouse outside of the input field, the radiobutton turns white and in order to make the number in the input field do its work I have to push this radiobutton anew. What I want is that the new situation is activated right away after entering a number in the inputfield and then pushing Enter of clicking with the mouse outside of the inputfield. I hope there is a solution for this. This is the program all the way stripped down to the relevant section:

   DynamicModule[{y, beta, center, standarddeviation, mean},
          Dynamic[y], {" Laplace", " distribution", " ", 
            RandomVariate[LaplaceDistribution[center, beta], 1000]], 
        TextCell[" Laplace "],
        center = 0;
        InputField[Dynamic[center], FieldSize -> 3],
        beta = 1.7;
        InputField[Dynamic[beta], FieldSize -> 3],
        TextCell["  "],
          Dynamic[y], {" normal", " distribution", " ", 
            RandomVariate[NormalDistribution[mean, standarddeviation],
              1000]], 0}]],
        TextCell["  Normal  "],
        mean = 0;
        standarddeviation = 1;
        InputField[Dynamic[mean], FieldSize -> 3],
        InputField[Dynamic[standarddeviation], FieldSize -> 3], 
        TextCell["  "]
         Partition[Riffle[Range[1, 500], y[[4]][[1 ;; 500]]], 2],
         PlotStyle -> {PointSize[0.003], White}, Background -> Black ],
        ImageSize -> 500]]      }]     ]}]]

Additional information: In the meantime I discovered that after putting a new number in an inputfield instead of hitting Enter or clicking outside of the inputfield and then pushing the radiobutton again one may also get desired result by right away pushing the Radiobutton 3 times. So in fact my problem may be considered as solved.

Posted 6 months ago

Using free radio list on many different platforms? Radio Internet, also known as radio broadcasting, is a form of digital audio transmission that is transmitted over the Internet using radio online transmitters. Internet radio is typically referred to as radio streaming because it does not travel far over traditional radio wires. Instead, it is sent over the internet and can be viewed by anyone with an appropriate account. There are many radio stations available to listen to online, as well as other musical programs, news, sports, and other programs.

Most Internet radio stations are now part of a syndication service and are available for download from the Internet in MP3 format. These are often referred to as portable music players (MP3s). Some of these internet radio stations are free to listen to and many others charge a fee for them. The majority of internet radio stations offer both free and paid downloads, but only a few are available only for the free downloads. As with most things on the Internet, the choice of music is usually greater for paid download services than for free ones. However, with many traditional radio stations, you can only choose which songs to listen to by listening to which station.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract