Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
SashkoTar committed Sep 18, 2019
2 parents 54c6975 + c3db6f8 commit d7fb426
Show file tree
Hide file tree
Showing 59 changed files with 115 additions and 113 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.sparja.syto</groupId>
<artifactId>filter</artifactId>
<version>0.1.0</version>
<groupId>net.sparja</groupId>
<artifactId>syto</artifactId>
<version>0.1.1</version>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package com.sparja.syto.filter
package net.sparja.syto.filter

import breeze.math.Complex
import com.sparja.syto.math.EllipticIntegral.K
import com.sparja.syto.math.JacobiEllipticFunction._
import com.sparja.syto.math.{BesselPolynomial, _}
import net.sparja.syto.math.EllipticIntegral.K
import net.sparja.syto.math.JacobiEllipticFunction._
import net.sparja.syto.math.{BesselPolynomial, _}
import net.sparja.syto.filter
import net.sparja.syto.math.BesselPolynomial

import scala.collection.immutable.Seq

Expand Down Expand Up @@ -58,7 +60,7 @@ private[filter] object Approximation {
case "phase" =>
val degree = -log10(a_last) / order
val poles = reversedPoles.map(_ * pow(10, degree))
Roots(zeros, poles, 1.0)
filter.Roots(zeros, poles, 1.0)

case "delay" =>
val poles = roots.map(1 / _)
Expand Down Expand Up @@ -110,7 +112,7 @@ private[filter] object Approximation {
}
val scale = pow(-1, order) * poles.product / zeros.product

Roots(zeros, poles, scale.real)
filter.Roots(zeros, poles, scale.real)
}

def chebyshev(order: Int, rp: Double) = {
Expand Down Expand Up @@ -166,7 +168,7 @@ private[filter] object Approximation {

val scale = if (order % 2 == 0) preScale / sqrt(1 + ep * ep) else preScale

Roots(zeros, poles, scale.real)
filter.Roots(zeros, poles, scale.real)
}

}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.sparja.syto.filter
package net.sparja.syto.filter

import breeze.math.Complex
import breeze.numerics.{pow, sqrt}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.sparja.syto.filter
package net.sparja.syto.filter

import breeze.math.Complex
import scala.collection.immutable.Seq
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package com.sparja.syto.filter
package net.sparja.syto.filter

import breeze.math.Complex
import com.sparja.syto.math.Polynomial
import com.sparja.syto.math.tan
import net.sparja.syto.math.Polynomial
import net.sparja.syto.math.tan
import net.sparja.syto.math.Polynomial

import scala.collection.immutable.Seq

object TransferFunctionBuilder {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package com.sparja.syto
package net.sparja.syto

import breeze.linalg.{DenseMatrix, DenseVector}
import breeze.math.Complex
import com.sparja.syto.math.{companionByPolynomial, cos, max, sin}
import net.sparja.syto.math.{companionByPolynomial, cos, max, sin}
import scala.collection.immutable.Seq

package object filter {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.sparja.syto.math
package net.sparja.syto.math

//TODO Add to Polynomial hierarchy

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.sparja.syto.math
package net.sparja.syto.math

import breeze.math.Complex

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
package com.sparja.syto.math

package net.sparja.syto.math

private[syto] object EllipticIntegral {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.sparja.syto.math
package net.sparja.syto.math

import breeze.math.Complex

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.sparja.syto.math
package net.sparja.syto.math

import breeze.math.Complex
import scala.collection.immutable.Seq
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.sparja.syto
package net.sparja.syto

import breeze.linalg.{DenseMatrix, DenseVector, diag}
import breeze.math.Complex
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
package com.sparja.syto.filter

package net.sparja.syto.filter

import junit.framework.TestCase.assertEquals
import org.junit.Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.sparja.syto.filter
package net.sparja.syto.filter

import junit.framework.TestCase.assertEquals
import org.junit.Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.sparja.syto.filter
package net.sparja.syto.filter

import junit.framework.TestCase.assertEquals
import org.junit.Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
package com.sparja.syto.filter

package net.sparja.syto.filter

import junit.framework.TestCase.assertEquals
import org.junit.Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.sparja.syto.filter.bessel.analog
package net.sparja.syto.filter.bessel.analog

import com.sparja.syto.filter.{Approximation, Roots, TransferFunctionBuilder}
import net.sparja.syto.filter.{Approximation, Roots, TransferFunctionBuilder}
import junit.framework.TestCase.assertEquals
import org.junit.Test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.sparja.syto.filter.bessel.analog
package net.sparja.syto.filter.bessel.analog

import com.sparja.syto.filter.{Approximation, Roots, TransferFunctionBuilder}
import net.sparja.syto.filter.{Approximation, Roots, TransferFunctionBuilder}
import junit.framework.TestCase.assertEquals
import org.junit.Test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.sparja.syto.filter.bessel.analog
package net.sparja.syto.filter.bessel.analog

import com.sparja.syto.filter.{Approximation, Roots, TransferFunctionBuilder}
import net.sparja.syto.filter.{Approximation, Roots, TransferFunctionBuilder}
import junit.framework.TestCase.assertEquals
import org.junit.Test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.sparja.syto.filter.bessel.analog
package net.sparja.syto.filter.bessel.analog

import com.sparja.syto.filter.{Approximation, Roots, TransferFunctionBuilder}
import net.sparja.syto.filter.{Approximation, Roots, TransferFunctionBuilder}
import junit.framework.TestCase.assertEquals
import org.junit.Test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.sparja.syto.filter.bessel.digital
package net.sparja.syto.filter.bessel.digital

import com.sparja.syto.filter.{Approximation, Roots, TransferFunctionBuilder}
import net.sparja.syto.filter.{Approximation, Roots, TransferFunctionBuilder}
import junit.framework.TestCase.assertEquals
import org.junit.Test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.sparja.syto.filter.bessel.digital
package net.sparja.syto.filter.bessel.digital

import com.sparja.syto.filter.{Approximation, Roots, TransferFunctionBuilder}
import net.sparja.syto.filter.{Approximation, Roots, TransferFunctionBuilder}
import junit.framework.TestCase.assertEquals
import org.junit.Test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.sparja.syto.filter.butterworth.analog
package net.sparja.syto.filter.butterworth.analog

import com.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import net.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import junit.framework.TestCase.assertEquals
import org.junit.Test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.sparja.syto.filter.butterworth.analog
package net.sparja.syto.filter.butterworth.analog

import com.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import net.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import junit.framework.TestCase.assertEquals
import org.junit.Test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.sparja.syto.filter.butterworth.analog
package net.sparja.syto.filter.butterworth.analog

import com.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import net.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import junit.framework.TestCase.assertEquals
import org.junit.Test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.sparja.syto.filter.butterworth.analog
package net.sparja.syto.filter.butterworth.analog

import com.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import net.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import junit.framework.TestCase.assertEquals
import org.junit.Test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.sparja.syto.filter.butterworth.digital
package net.sparja.syto.filter.butterworth.digital

import com.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import net.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import junit.framework.TestCase.assertEquals
import org.junit.Test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.sparja.syto.filter.butterworth.digital
package net.sparja.syto.filter.butterworth.digital

import com.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import net.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import junit.framework.TestCase.assertEquals
import org.junit.Test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.sparja.syto.filter.butterworth.digital
package net.sparja.syto.filter.butterworth.digital

import com.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import net.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import junit.framework.TestCase.assertEquals
import org.junit.Test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.sparja.syto.filter.chebyshev.analog
package net.sparja.syto.filter.chebyshev.analog

import com.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import net.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import junit.framework.TestCase.assertEquals
import org.junit.Test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.sparja.syto.filter.chebyshev.analog
package net.sparja.syto.filter.chebyshev.analog

import com.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import net.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import junit.framework.TestCase.assertEquals
import org.junit.Test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.sparja.syto.filter.chebyshev.analog
package net.sparja.syto.filter.chebyshev.analog

import com.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import net.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import junit.framework.TestCase.assertEquals
import org.junit.Test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.sparja.syto.filter.chebyshev.digital
package net.sparja.syto.filter.chebyshev.digital


import com.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import net.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import junit.framework.TestCase.assertEquals
import org.junit.Test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.sparja.syto.filter.chebyshev.digital
package net.sparja.syto.filter.chebyshev.digital


import com.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import net.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import junit.framework.TestCase.assertEquals
import org.junit.Test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.sparja.syto.filter.chebyshevII.analog
package net.sparja.syto.filter.chebyshevII.analog

import com.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import net.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import junit.framework.TestCase.assertEquals
import org.junit.Test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.sparja.syto.filter.chebyshevII.analog
package net.sparja.syto.filter.chebyshevII.analog

import com.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import net.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import junit.framework.TestCase.assertEquals
import org.junit.Test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.sparja.syto.filter.chebyshevII.analog
package net.sparja.syto.filter.chebyshevII.analog

import com.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import net.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import junit.framework.TestCase.assertEquals
import org.junit.Test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.sparja.syto.filter.chebyshevII.analog
package net.sparja.syto.filter.chebyshevII.analog


import com.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import net.sparja.syto.filter.{Approximation, TransferFunctionBuilder}
import junit.framework.TestCase.assertEquals
import org.junit.Test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package com.sparja.syto.filter.core
package net.sparja.syto.filter.core

import breeze.math.Complex
import com.sparja.syto.filter.Approximation
import com.sparja.syto.math.BesselPolynomial
import com.sparja.syto.util.ComplexAssertion
import net.sparja.syto.filter.Approximation
import net.sparja.syto.math.BesselPolynomial
import net.sparja.syto.util.ComplexAssertion
import junit.framework.TestCase.assertEquals
import net.sparja.syto.util.ComplexAssertion
import org.junit.Test

class BesselPrototypeTest {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.sparja.syto.filter.core
package net.sparja.syto.filter.core

import com.sparja.syto.filter.Approximation
import net.sparja.syto.filter.Approximation
import junit.framework.TestCase.assertEquals
import org.junit.Test

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package com.sparja.syto.filter.core
package net.sparja.syto.filter.core

import breeze.math.Complex
import com.sparja.syto.filter.Approximation
import com.sparja.syto.util.ComplexAssertion
import net.sparja.syto.filter.Approximation
import net.sparja.syto.util.ComplexAssertion
import junit.framework.TestCase.assertEquals
import net.sparja.syto.util.ComplexAssertion
import org.junit.Test

class EllipticPrototypeTest {
Expand Down
Loading

0 comments on commit d7fb426

Please sign in to comment.