1,979 reputation
532
bio website
location
age
visits member for 2 years, 10 months
seen 2 days ago

Dec
22
comment Is there a LogBeta function like the LogGamma?
What about the logarithm of the incomplete Beta function? That can't be reduced to LogGammas. Just asking cause I had a similar underflow/overflow problem using Beta or BetaRegularized to compute incomplete Beta values.
Dec
15
comment How to exclude the diagonal in a MatrixPlot?
Thanks. Let me just point out that I ended up using BarLegend instead of plotting a legend using MatrixPlot.
Dec
7
comment FindGraphCommunities method options?
@Szabolcs I sent them an email. If I receive a reply I'll post it here. In the meantime, and in case I don't receive any reply from Wolfram, maybe people in this forum with experience using FindGraphCommunitites may want to share what they have learned.
Dec
5
comment Split graph into independent maximal cliques?
I don't expect a specific result. I know there are several ways to do the partition I want. What I want is something similar to what FindGraphCommunitites does, but only choosing communities that are cliques. I hope it's clearer now.
Dec
5
comment How to exclude the diagonal in a MatrixPlot?
This paints the diagonal elements using the color in the gradient scale corresponding to the minimum matrix element. That's not what I want. I want the diagonal elements to receive a separate color, unrelated to the color used for non-diagonal elements. Otherwise it might give the impression that diagonal elements equal the minimum matrix elements.
Dec
5
comment Split graph into independent maximal cliques?
@DavidG.Stork A trivial partition into cliques that works for any graph is a partition into subsets containing single vertices. Of course, that's not what I want, but it illustrates that a partition with the conditions I seek always exists. It's only a matter of choosing the most appropriate.
Dec
5
comment How to exclude the diagonal in a MatrixPlot?
PlotLegends -> True works with t1, but not with t2. It doesn't seem to understand Null... I need a PlotLegend in my plot :(
Dec
5
comment Split graph into independent maximal cliques?
@Szabolcs Not exactly, because maximal cliques are not a partition of the vertices (some maximal cliques intersect each other). I want to partition the vertices into cliques.
Dec
5
comment Split graph into independent maximal cliques?
This is not a partition of the vertices. Note that the cliques have non-empty intersections.
Dec
5
comment How to exclude the diagonal in a MatrixPlot?
@SimonWoods See edit. Added an example.
Dec
5
comment How to exclude the diagonal in a MatrixPlot?
@SimonWoods I just want the diagonal to be drawn white, independently of the color gradient used, and the gradient should not depend on the values at the diagonal.
Dec
5
comment How to exclude the diagonal in a MatrixPlot?
@Öskå The range of your non-diagonal elements includes 0. Hence the gradient doesn't change appreciably. My non-diagonal elements have different ranges.
Dec
5
comment What does the VertexMoving method for FindGraphCommunities do?
What is this method? FindGraphCommunities[g,Method->"VertexMoving"] doesn't do anything....
Dec
4
comment Insert at specific resulting positions in multidimensional list?
That doesn't work as I want. The position of y in {{1}, {2, x, 3, y, 4}, {3, 4}, {5, z}} is {2,4}, but I want it to be {2,3}. The output I expect from inserttt[{{1}, {2, 3, 4}, {3, 4}, {5}}, {x, y, z}, {{2, 2}, {2, 3}, {4, 2}}] is {{1},{2,x,y,3,4},{3,4},{5,z}}
Dec
4
comment Insert at specific resulting positions?
@DavidG.Stork Yes. As I explain in the answer, this method doesn't allow inserting multiple elements. It only inserts copies of the same element. Hence I obtain {x, 1, 2, 3, x, 4, 5}
Dec
4
comment Insert at specific resulting positions in multidimensional list?
@Kuba Typo. Fixed.
Dec
4
comment Insert at specific resulting positions?
Sorry about that. I had a typo.
Dec
4
comment Insert at specific resulting positions?
@andre Thanks for pointing out that the positions list should be sorted ;)
Dec
4
comment Insert at specific resulting positions?
I think that insertF = Fold[Insert[#, #2[[1]], #2[[2]]] &, #, SortBy[Transpose[{#2, #3}], Last]] &; works.
Dec
4
comment Insert at specific resulting positions?
In think the Accumulate@#3 is the problem. Replacing it with just #3 works.