- #1
Stijn
- 2
- 0
I want to create a binary matrix (${X}_{m*n}$) containing $C$ ones ($||X|| = C$). Additionally I want to have the number of elements of each row ($m$) to have an exponential form. This is: for each row the number elements needs to be equal to $e^{alpha * i}$ or in symbols: ||${X}_{i}$|| = $e^{alpha*i}$.
As the total number of ones is known ($C$), we can say that: $||X|| =\sum_{i=1}^{m}e^{alpha*i} = C$
Based on the function of the sum of geometric series ($\sum_{a=0}^{A-1} {b}^{a}=\d{1-{b}^{A}}{1-b}$) we can rewrite the equation as:
$\frac{1-e^{(m+1)*\alpha}}{1-e^{\alpha}}= C + 1$
Is there a way to solve alpha out of this function and write the equation as: $\alpha = f(C, m)$?
Thanks in advance!
As the total number of ones is known ($C$), we can say that: $||X|| =\sum_{i=1}^{m}e^{alpha*i} = C$
Based on the function of the sum of geometric series ($\sum_{a=0}^{A-1} {b}^{a}=\d{1-{b}^{A}}{1-b}$) we can rewrite the equation as:
$\frac{1-e^{(m+1)*\alpha}}{1-e^{\alpha}}= C + 1$
Is there a way to solve alpha out of this function and write the equation as: $\alpha = f(C, m)$?
Thanks in advance!
Last edited: